Jira Cloud Automation: Manual WebResponse to JSON Conversion

Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.

Summary

Jira Automation rule's {{webResponse.body}} Smart Value isn't JSON formatted, unlike browser or tool responses.

Solution

For this scenario, we are using Jira REST API to get the values. This may vary depending on how your application is configured.

  1. Create an automation rule that sends a web request.

  2. Include the response body in a comment action.

  3. Observe that it's not in JSON format.

To work around it, you will need to manually format it including the smart value for each field returned:

"Comment on Issue" dialog with a JSON template for comment input, a "Prevent duplicates" checkbox, "Comment Visibility" section, and "Cancel" and "Save" buttons.

When this is done, the response body will be added in the correct JSON format.

Relevant pages:

Updated on April 24, 2025

Still need help?

The Atlassian Community is here for you.