Jira Automation 'Team' field question
Asked by Saurabh Chaudhary:

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.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/281918i4003D256BA6CF407/image-size/large?v=v2&px=999 "Team Field.jpg")![Team custom.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/281919i58F77F03F7B7BD20/image-size/large?v=v2&px=999 "Team custom.jpg")


Answers:
author: Mohammed Aamer Khan
body: Hi [@Saurabh Chaudhary](/t5/user/viewprofilepage/user-id/4986544)  

Try below code once

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

You can find more information on another similar question asked on community [Click Here](https://community.atlassian.com/t5/Jira-Software-questions/Inherit-Team-field-from-parent-issue-using-Automation/qaq-p/1541911)  

I Hope it resolves your query

comments: author: Saurabh Chaudhary
body: Hi [@Mohammed Aamer Khan](/t5/user/viewprofilepage/user-id/5297319) , 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.


author: Mohammed Aamer Khan
body: [@Saurabh Chaudhary](/t5/user/viewprofilepage/user-id/4986544)  

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.


author: Saurabh Chaudhary
body: Below is my automation which is working fine. The bit not executing is what I have shared above

![Automation.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/282020iECA7D435ADBEE28C/image-size/large?v=v2&px=999 "Automation.jpg")


author: Bill Sheboy
body: Hi [@Saurabh Chaudhary](/t5/user/viewprofilepage/user-id/4986544)

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


author: Saurabh Chaudhary
body: Hi [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) 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.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/282230i03248709C2EA3C56/image-size/large?v=v2&px=999 "Team custom.jpg")![Team Field.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/282231i9D311FB72732789A/image-size/large?v=v2&px=999 "Team Field.jpg")


author: Mohammed Aamer Khan
body: Hi [@Saurabh Chaudhary](/t5/user/viewprofilepage/user-id/4986544)

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

![Team Rule.png](https://community.atlassian.com/t5/image/serverpage/image-id/282324iC67A7467C53C26E0/image-size/large?v=v2&px=999 "Team Rule.png")![Output.png](https://community.atlassian.com/t5/image/serverpage/image-id/282325i86A1E86B8F30B9BF/image-size/large?v=v2&px=999 "Output.png")

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

Thanks


Tags: cloud

jira-software

jira-software-cloud