Skip to main content
Skip table of contents

Automation actions advanced: Parse Custom Data

In certain situations, you may have unique workflows that require specialized automations. In these cases, relying solely on standard Jira issue data may not suffice. Discover how to leverage custom data in automations to extract and utilize values effectively within your automation actions.

Please ensure you have reviewed the following guidelines for our automations: Automation.

General Guidelines for Execution

If you are already acquainted with our automation actions, you understand that you typically select issue data in either Automation format or Jira format within the web request body, as illustrated below:

image-20250723-073553.png

To utilize Custom data values, you need to adjust the toggle in two locations: here and within the Jira automation rule.

  1. First, switch the toggle in our automation action to "Custom data."

  2. Next, navigate to the corresponding Jira automation rule and select the "Custom data" option within the "Send web request" section:

    image-20250723-074136.png
  3. Utilize the following values as fundamental inputs: you may provide either issueIds or simply IssueId within the content.

CODE
{
    "issueId": "{{issue.id}}",
    "projectId":  "{{project.id}}"
}
  1. Add here your custom value:

CODE
{
    "issueId": "{{issue.id}}",
    "projectId":  "{{project.id}}",
    "mynewvalue": "{{automation.Jira.Value}}"
}
  1. When now using the following value in our automation action rule it will parse the value to it:

CODE
{{customData.mynewvalue}}

Examples

Helpful Tip: To examine potential values from the trigger or automation rule, you can conveniently add a log action. This will allow you to log the value and observe the results that are returned.

Send a bot message to the approver telling him about who initiated the approval
CODE
{
    "issueId": "{{issue.id}}",
    "projectId":  "{{project.id}}",
    "initiator": "{{initiator.displayName}}"
}

<-- In our automation rule use {{webhookData.initiator}} -->
<-- This will print out the name of the person who triggered the approval -->
Start a chat with the approver and tell him that he is in charge
CODE
{
    "issueId": "{{issue.id}}",
    "projectId":  "{{project.id}}",
    "approver": "{{issue.customfield_12345.approvers.approver.displayName}}"
}

<-- In our automation rule use {{webhookData.approver}} -->
<-- This will print out the name of the approver ->>

Smart values in Atlassian Automation | Cloud automation Cloud | Atlassian Support

Automation smart values - issues | Cloud automation Cloud | Atlassian Support

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.