How to use smart value with primary team?

khushboo_puri
Contributor
January 18, 2025

How to use primary team in automation rule like we use issue.key or issue.Dependent Team(s)

3 answers

1 vote
Jeffrey_Denton
Contributor
January 18, 2025

Is the primary team a custom field or system field?  What instance of Jira are you using? 

I'm assuming you tried:  {{issue.fields.Primary Team}}

or

{{issue.customfield_XXXXX}}

0 votes
khushboo_puri
Contributor
January 21, 2025

All the above suggestions didn't worked.

Primary Team is a group picker custom field.All other fields like status, assignee, summary, reporter, key is working

0 votes
Renata_Getint
Atlassian Partner
January 20, 2025

Hi @khushboo_puri 

Great question! Using smart values with the "Primary Team" field in Jira Automation can be incredibly powerful for customizing your workflows.

If "Primary Team" is a custom field in your instance, you'll need its custom field ID to reference it correctly in an automation rule. Here’s how you can locate and use it:

Step 1: Find the Custom Field ID

  1. Go to Jira Settings > Issues > Custom fields.
  2. Search for your "Primary Team" field.
  3. Click the "..." next to it and choose Edit Details. The URL will contain something like customfield_12345. This is your field ID.

Step 2: Use the Smart Value in Automation

To use "Primary Team" in an automation rule, reference it with the smart value format: {{issue.customfield_12345}}

Here’s an example:

  • If you’re sending an email notification or setting a field, use: Hi team, the primary team for this issue is: {{issue.customfield_12345}}.

Step 3: Test It!

  • Create a test rule, such as a trigger (e.g., issue updated).
  • Add a log action using the smart value, like: Primary Team: {{issue.customfield_12345}}
  • Check the automation log to verify it resolves correctly.

Using Dependent Teams

If "Dependent Team(s)" is another custom field or part of an advanced setup, follow the same steps to retrieve its custom field ID and apply the corresponding smart value: {{issue.customfield_[Dependent_Teams_ID]}}

Bonus: Use Primary Team Dynamically

To assign issues or route workflows based on "Primary Team," use conditional statements in your rule: if {{issue.customfield_12345}} equals "Team A" then...

Let us know if you need further assistance. Happy automating!

Best regards,
Renata

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 20, 2025

Hi @Renata_Getint 

What is the source of the content you posted?

If it is from a bot / AI-tool, please see the community guidelines regarding the disclosure of such content in your post's wording:

https://community.atlassian.com/t5/custom/page/page-id/rules-of-engagement

Kind regards,
Bill

Janice
Community Manager
Community Managers are Atlassian Team members who specifically run and moderate Atlassian communities. Feel free to say hello!
January 20, 2025

@Renata_Getint We noticed this response has a distinct AI-like formatting. While we're all for embracing new tech, we want remind everyone of the Atlassian community guidelines and Responsible Tech Principles. Put simply, AI can be a great tool for polishing, but your real-world knowledge is what our community values most. We ask the core of your contributions to come from your own expertise.

 
If you do use AI in your responses the community management team asks members disclose this in responses. We're all about transparency and genuine human connections here. If you have any questions about this, feel free to reach out to communitymanagers@atlassian.com.

Suggest an answer

Log in or Sign up to answer