Learn how to use Bundled Fields in automation rules
When creating automation rules in Jira, you can access your Bundled Fields properties and subfields to make them visible and usable in various automation rules.
Due to ongoing platform improvements, certain views presented in documentation may not fully reflect the latest in-app changes. We’re actively updating our content to match the new experience.
When using automation, you can display the values from Bundled Fields and use them while creating conditions. In order to do so, insert a smart value to your rule including the ID that refers to your Bundled Field, for example:
{{issue.customfield_10066}}
Smart value in automation configuration:
Bundled Field visible in the email:
If you want to create a condition in automation that relies on the properties of individual subfields, you can access them using the following command:
{{issue.properties."com.deviniti.extension.bundledfield_{CUSTOMFIELD_ID}"."{SUBFIELD_ID}"}}
While the CUSTOMFIELD_ID of the Bundled Field is visible on the Manage apps screen, the SUBFIELD_ID can be obtained only by executing certain commands in the rules.
Before creating the rule, make sure your issue contains a Bundled Field.
{{issue.properties."com.deviniti.extension.bundledfield_{CUSTOMFIELD_ID}"}}
For more information about creating rules with automation, see Atlassian documentation.
The command displays the IDs and their corresponding subfields. For example, the Backend Developer subfield has an ID 10004.
Now that you have your subfield’s ID, you can access its exact value using the full command from the beginning of this section.
Command in the automation rule:
Subfield’s value in the email:
Below you can see some commands that refer to Bundled Fields and their individual subfields.
{{issue.properties."com.deviniti.extension.bundledfield_{CUSTOMFIELD_ID}"."{SUBFIELD_ID}".size}}
Returns the length of the list with values for a given subfield. This way you can check how many Bundled Fields there are in an issue. This command is particularly useful when using the If/Else comparison block in automation.
{{issue.properties."com.deviniti.extension.bundledfield_{CUSTOMFIELD_ID}"."{SUBFIELD_ID}".get(n-1)}}
When there’s more than one Bundled Field in an issue, this command will return the value of a subfield basing on the provided index.
Keep in mind that the indexing starts from zero. It means that in order to get the first value in a list, you need to insert 0 inside the get operator, for example get(0).
You can edit the subfields when using the Edit issue automation rule. To do so, you need to insert the following JSON structure into the Edit issue field and assign values to each subfield from the Bundled Field:
{
"properties": [
{
"key": "com.deviniti.extension.bundledfield_{CUSTOMFIELD_ID}",
"value": {
"{SUBFIELD_ID_1}": [
"YOUR VALUE"
],
"{SUBFIELD_ID_2}": [
"YOUR VALUE"
]
}
}
]
}
Keep in mind that you need to assign values to all the subfields in a given Bundled Field, even if you want to edit only one or some of them. Subfields without their defined values will appear empty once the rule is executed.
If you can’t find the answer you need in our documentation, raise a support request. Include as much information as possible to help our support team resolve your issue faster.