Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation Rule using Team field

Antonina Yudina
Contributor
July 11, 2025

hey guys,

I m trying to create an automation rule using the Team field which looks as following.

Trigger: creation of a new issue

When: issue type is one of the following: Story, Epic, Task

Then: advanced option:

  • {
    "fields": {
    "customfield_10001":"TEAM-ID"

    }
    }

Result: No Team Name is added when a new issue is created :(. Any idea why?

Thank you in advance for your help.

3 answers

1 accepted

3 votes
Answer accepted
Yogesh Mude
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.
July 11, 2025

@Antonina Yudina below should work...

{"update": {
"customfield_10001": [
{
"set": "f6c675e0-f944-482c-955c-0d265dc9285b"
}
]
}
}

Note, please replace your team ID

Antonina Yudina
Contributor
July 11, 2025

the field Team in a new Jira issue is still empty :( 

Like John Funk likes this
Yogesh Mude
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.
July 11, 2025

Ahh, strange. The above code is working in my instance. not sure why its not working for you.

Like John Funk likes this
Yogesh Mude
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.
July 11, 2025

Also, as @Tomislav Tobijas  mantioned share the rule + audit log.

Like # people like this
Antonina Yudina
Contributor
July 11, 2025

Jira_Automation_Rule.PNG

Antonina Yudina
Contributor
July 11, 2025

Audit Log looks perfect - Successful

Yogesh Mude
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.
July 11, 2025

Great.

Antonina Yudina
Contributor
July 11, 2025

the field is still empty although no errors shown in the audit log. I dont get it.

Yogesh Mude
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.
July 11, 2025

can you share the work item snap and team as well. BTW, Team field is availble on the work item create, Edit screen? if not, then please add and test.

Antonina Yudina
Contributor
July 11, 2025

Team_Field.PNG

Antonina Yudina
Contributor
July 11, 2025

hey guys, it works :)))). but not immediately. it takes Jira kind of 1-2 sec to add the team name. Thank you all for ur great support!!! u r just amazing ;)!!!!

Like # people like this
0 votes
Marc - Devoteam
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.
July 11, 2025

Hi @Antonina Yudina 

The syntax is as follows:

{
"fields": {
"customfield_10001": "<team-id>"
     }
}

0 votes
Tomislav Tobijas
Community Champion
July 11, 2025

Hi @Antonina Yudina ,

This should work, though. We're using the same thing/JSON and automation updates Team field value. We do additional mapping via Lookup table, but it's the same thing as defining an exact team ID.

2025-07-11_10-46-36.png

Could you please share a screenshot and audit log from your automation to help debug what's going on there, if possible?

Cheers,
Tobi

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events