Forums

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

Jira Automation Failing to Set Team Field on Issue Creation

Lukas Maul
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 25, 2025

 

Hello Atlassian Community,

I am experiencing an issue with a Jira automation rule that is failing to set the "Team" field when a new issue is created.

Details:

  • Goal: The automation should set the "Team" custom field to "Team IT Support" whenever a new issue is created in our project.

  • Trigger: Issue Created

  • Action: Set entity property

  • Entity Type: Issue

  • Property Key: customfield_10001 (This is the correct custom field ID for the "Team" field, as identified in Jira settings)

  • Property Value: 4270d2c6-2e41-413c-97e5-9b05623d9ea0 (This is the ID for the "Team IT Support" team, obtained from the team's URL in Jira)

Problem:

The automation rule runs, but the "Team" field is not being set. The audit log shows the following error: "Failed to set entity property for issue: ITS-292" (where ITS-292 is the issue key). I've attached a screenshot of the audit log for your reference.

Troubleshooting steps already taken:

  • Verified the custom field ID (customfield_10001) is correct.

  • Team ID (4270d2c6-2e41-413c-97e5-9b05623d9ea0) i'm not shure if it is correct.

  • Ensured the automation user has the necessary permissions to edit issues and modify the "Team" field.

  • Tried setting the property value without brackets.

Questions:

  • Why is the automation rule failing to set the entity property?

  • Is there a specific format required for the property value (Team ID) that I am missing?

  • Is there anything else I can try to resolve this issue?

Environment:

  • Jira Cloud

Thank you for your assistance!
Bildschirmfoto 2025-03-25 um 12.55.44.pngBildschirmfoto 2025-03-25 um 12.58.38.pngBildschirmfoto 2025-03-25 um 13.01.10.png

1 answer

1 accepted

6 votes
Answer accepted
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.
March 25, 2025

Hi @Lukas Maul 

Welcome to the community.

This can only be done by setting this up via JSON, so via the more option in the edit action.

Code:

{
"fields": {
"customfield_10042:"4270d2c6-2e41-413c-97e5-9b05623d9ea0"
}

Lukas Maul
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 25, 2025

Hello Marc,
thanks for your feedback.

I have used the code, but unfortunately Jira gives me the error message: No valid JSON.

Is there a problem with the syntax?

Here are the screenshots of the code & errorBildschirmfoto 2025-03-25 um 14.44.05.pngBildschirmfoto 2025-03-25 um 14.45.13.png

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.
March 25, 2025

Hi @Lukas Maul 

Sorry typo on my side, a " is missing from the code.

{
"fields": {
"customfield_10042":"4270d2c6-2e41-413c-97e5-9b05623d9ea0"
}

So in your case add a " after 10001

Suggest an answer

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

Atlassian Community Events