Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Jira Automation 'Team' field question

Edited

Hello there,

 

I have written a Jira Automation which is doing well for all fields except one, which is the 'Team' field (which we got when we upgraded to Jira Premium).

As this field is not directly available in the fields for Automation related action. I used the 'Additional fields' section to populate the Team that is allocated to the Parent issue (Initiative which is defined as parent to Epics) to the Child Issue (Epic Level) which this automaton is creating successfully.

It works for all other fields but Team. I have tried the Custom Field ID for Team as well but I get the error 'invalid Jason'. Can anyone please help what is the correct JSON here???

Team Field.jpgTeam custom.jpg

 

1 answer

0 votes
Mohammed Aamer Khan
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.
Sep 20, 2023

Hi @Saurabh Chaudhary

Try below code once

{
"fields": {
"team": "{{issue.epic.team.id}}"
}
}

 

You can find more information on another similar question asked on community Click Here 

I Hope it resolves your query

Hi @Mohammed Aamer Khan , the child ticket being created is at Epic level. It is the child of the Initiative level that we have defined in the hierarchy through Jira Premium.

So the one you shared above worked but did not populated the Team field.

Mohammed Aamer Khan
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.
Sep 21, 2023 • edited

@Saurabh Chaudhary

Try using Branching Option and use trigger issue code in edit issue in branch action item.

In Branching you can select JQL and filter the required result. If You can share your Automation I will be able to guide you more on it.

Below is my automation which is working fine. The bit not executing is what I have shared above

Automation.jpg

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.
Sep 21, 2023

Hi @Saurabh Chaudhary 

Adding on to Mohammed's answer...

You note the "bit not executing" is what you have shared, but the rule you show does not attempt to set the Team field.  Have you posted the correct image?

Next, there are unfortunately several fields in Jira Cloud named "Team" and many of the fields related to Advanced Roadmaps/Timelines are not supported by automation rules.  I encourage you to use this how-to article to confirm your field is supported by automation rules before proceeding.

https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

Essentially you identify an issue containing your field, call a REST API function with a browser tab, and then search for your field.  If you find it, the field is supported and you can learn the correct smart value or custom field id to use.  If the field is not listed, automation rules do not support it.

Kind regards,
Bill

Like Saurabh Chaudhary likes this

Hi @Bill Sheboy Resharing the images I had shared above that were not executing. I had found the custom field ID and tried using that as well.

Team custom.jpgTeam Field.jpg

Mohammed Aamer Khan
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.
Sep 22, 2023

Hi @Saurabh Chaudhary

I created an automation and tested above JSON. I can see it is working as expected. PFA

 

Team Rule.pngOutput.png

Please check once again and let me know if it is displaying any specific error.

Thanks

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events