Inheriting team field from parent issue in advanced automation

Korey Kavadias
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!
June 19, 2024

Hi everyone, hoping you can help me. 

 

I'm trying to set up an automation where when an issue is created, if it has a parent link it will inherit the value in the parent link Team field. I've currently got the following set up but it keeps creating an error when the automation rule is run and I can't figure out if it's because this functionality is not supported or because I've written it incorrectly, has anyone tried this successfully?

 

{ "fields":

  { "customfield_XXXX": {{issue.parent.customfield_XXXX.asJsonString}}

  }

}

1 answer

1 accepted

2 votes
Answer accepted
Korey Kavadias
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!
June 19, 2024

Ended up finding the answer, in case anyone else gets stuck like I did I was using the wrong JSON:

Correct form is:

{
"fields": {
"customfield_XXXX": {{issue.parent.customfield_XXXX.id.asJsonString}}
}
}

Alex Lee August 12, 2024

Hello @Korey Kavadias , I am trying to do the same and your answer is probably the closest I can get to. However, I am getting a weird error complaining the team with ID xxx is not found but I can see them under the team menu.  

Have you had any experience with that before? Any help would be appreciated. Thanks.

 

jira error.png

Suggest an answer

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

Atlassian Community Events