Versions Compared

Key

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

...

Code Block
languagejs
titleJSON sample
{
  "firstName": "John",
  "lastName" : "doe",
  "age"      : 26,
  "address"  : {
    "streetAddress": "naist street",
    "city"         : "Nara",
    "postalCode"   : "630-0192"
  }
}
Mapping(s):
Info

"first" JSONPath expression "$.firstName"

"last" JSONPath expression "$.lastName"

"address" JSONPath expression "$.firstName"

Using the mappings:

Ie. posting a comment on the issue in the scope

POST URL: your_jira_instance_base_url/rest/api/2/issue/{{issue.key}}/comment

Headers

Content-Type - application/json

Auth:

Basic auth, your Jira user username/pwd

Body: 

{
   "body": "{{first}} {{last}} from {{address.city}} says hi!"
}



Result: 

A comment: "John doe from Nara says hi!" posted to the issue. 

...