Error occurs during copying values in automation nrule

William van Dalen
Contributor
November 13, 2024

 

Hi,

In a automation rule i copy the values from a customfield to 'Team'. Most of the issues edited successfully, because the values where copied into 'Team, but if an issue is a child of a parent issue then 'Team' remained empty and an error appeared: ' (Issue 'XXXX' is a subtask, and inherits the team assignment from its parent. (customfield_10001).

I already wrote:

{ "fields": { "team": "{{issue.parent.customfield_10246}}" } }, but it appears it's incorrect.

Does anyone know how to solve this issue?

 

With regards, Will

2 answers

1 vote
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.
November 13, 2024

HI @William van Dalen

@Hans Polder _Devoteam_ has good points, but based on the team field, this can only be updated by the ID of the team name, not based on a custom field value

The Team in Jira can only be set as:

{ "fields": { "team": "the id value for the team" } }

There is no other option for this,

0 votes
Hans Polder _Devoteam_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 13, 2024

Hi Will,

When looking at the error you gave, it seems to state that the issues where it fails are in fact sub tasks, where it is indeed not possible to fill the 'Team' field, due to the reason provided.

If you cannot see the 'Team' value in a sub-task: Have you checked any Screen configuration to identify if the Team field is added there?

Suggest an answer

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

Atlassian Community Events