Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This document lists the expected JSON input value that should be provided to set Jira Standard and Custom fields. You might also want to look at Standard Jira fieldsPredefined Custom fields and User-created custom fields to know how to access the fields of an issue.

...

 Field NameExpected input typeExpected input valueExample
Affects Version/sAn array of objectsVersion object
  • [{"name":"2.0"}]
  • [{"name":"2.0"},{"name":"1.0"}]
  • {{issue.fields.fixVersions | dump}} - Using Nunjucks annotations to copy the Fix Versions
AssigneeObjectUser object, or null for Unassigned
  • {"name":"carter"}
  • {{issue.fields.reporter | dump}} - Using
    Nunjucks annotations to copy the Reporter
  • null
AttachmentsAn array of objectsAttachment object
Component/sAn array of objectsComponent object
  • [{"name":"C1"}]
  • [{"name":"C1"},{"name":"C2"}]
DescriptionStringAny simple single/multi-line text within quotes should be provided.
  • "This is a description"
Due dateStringString containing an ISO_8601 date within quotes should be provided.
  • "2016-08-09"
EnvironmentStringAny simple single/multi-line text within quotes should be provided.
  • "This is the QA Environment"
Fix Version/sAn array of objectsVersion object
  • [{"name":"2.0"}]
  • [{"name":"2.0"},{"name":"1.0"}]
Issue TypeObjectIssue Type object
  • {"name":"Bug"}
LabelsArray of valuesValue within quotes should be provided.
  • ["Label"]
  • ["a","b"]
Linked IssuesAn array of objectsIssueLink object
  • {{issue | epic | field("fields.issuelinks") | dump}} - Using Nunjucks annotations to copy the Linked issues of the current issue's Epic.
  • [{
      "type": {"name":"Blocks"},
      "outwardIssue": {"key":"TEST-1"}
    },
    {
      "type": {"name":"Blocks"},
      "inwardIssue": {"key":"TEST-2"}
    }]
Original EstimateString

A Number of seconds or a duration string within quotes should be provided.

  • "3w"
  • "2w 1d 6h"
  • "25200"
PriorityObjectPriority object
  • {"name":"High"}
Remaining EstimateString

A Number of seconds or a duration string within quotes should be provided.

  • "3w"
  • "2w 1d 6h"
  • "25200"
ReporterObjectUser object
  • {"name":"carter"}
ResolutionObjectResolution Object
  • {"name":"Duplicate"}
Security levelObjectSecurity level object
  • {"name":"QA Domain"}
SummaryStringAny simple single-line text within quotes should be provided.
  • "This is the Summary"
Time TrackingObjectObject with original and remaining estimates should be provided. Note: This requires checking the "Treat value as JSON" option.
  • {
      "originalEstimate": "5w",
      "remainingEstimate": "4w 1d"
    }
  • {
      "originalEstimate": "5w 2h 6h",
      "remainingEstimate": "25200"
    }
WatchersAn array of objectsUser object
  • [{"name":"carter"}]
  • [{"name":"carter"},{"name":"john"}]

...