Automation For Jira - How to write a condition based on the Advanced Roadmap Team Field in a rule

Still need help?

The Atlassian Community is here for you.

Ask the community

robotsnoindex

Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.

Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles for non-Data Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

robotsnoindex

Summary

  • Currently, Automation For Jira does not support fields which are coming from Advanced Roadmap, such as the Team, Target Start, Target End, Parent Link fields. Because of that, it is not possible to easily add a condition in a rule that will check the content of these fields, because they are not listed in the Issue Field Condition component:
  • This limitation is tracked in the feature request linked below:
  • The purpose of this article is to explain how to add a condition in an automation rule based on the content of the Advanced Roadmap team field.

Environment

  • Jira Server / Data Center 8.0.0 and any higher version
  • Automation for Jira 7.4.0 and any higher version

Solution

Let's assume that you are trying to write an automation rule that will check if the Team field of a Jira issue contains a specific Team name (for example "Team 1") before executing some action.

Step 1 - Get the Custom Field ID of the Team field

Each Jira installation will have its own set of custom field IDs. Therefore, this step is required, since the Team field ID might differ across Jira installation.

To get this ID:

  • Go to the page ⚙ > Issues > Custom Fields
  • Look for the Team field, then click on ... > View next to the field
  • Get the ID found in the URL (in the example below, the ID is 10204):

Step 2 - Add the condition component to the automation rule

Instead of using the Issue Field Condition component, add the Advanced Compare condition component to the automation rule with the parameters below:

  • First value: copy the expression below, after replacing XXXXX with the Teams Custom Field ID obtained in the 1st step

    {{triggerIssue.customfield_XXXXX.name}}
  • Condition: equals
  • Second value: add the name of the team

The condition component should look like in the screenshot below, assuming that the Team field ID is 10204 and that the Team name is "Team 1":




Last modified on Feb 21, 2025

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.