Forums

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

Upon creation, lookup epic Team and copy to issue

Sheri Widler
Contributor
June 29, 2023

I am looking for a way to copy the team from an epic to a story/task issue upon creation.  I think i have to use a json smartvalue but need help with looking up the team number first and then using that for the input to the json.  

2 answers

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 26, 2023

Hi @Sheri Widler 

You are able to do this.

Make sure the "Team" field is available on the required screen(s).

In the automation rule use the following Edit action in the rule should contain:

{
"fields": {
"customfield_<ID>":"<Team ID>"
}
}

Example

{
"fields": {
"customfield_10001":"100"
}
}
0 votes
Bill Sheboy
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.
June 29, 2023

Hi @Sheri Widler 

Not all of the fields from advanced roadmaps are supported by automation rules, and I believe there are several fields called "team" in Jira...

So first thing, I recommend using this how-to article with example epics and stories/tasks to confirm the fields are supported with smart values in automation rules: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

If your field is indeed supported, you could create a rule, triggered on the story/task creation, and then copy the field from the epic parent.  That how-to article will help you know the field to use and then this article will give examples of how to perform the JSON edit: https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/

Kind regards,
Bill

Sheri Widler
Contributor
June 29, 2023

The field is not visible, thanks 

Bill Sheboy
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.
June 29, 2023

I think it is the same as this automation issue for Server/Data center version, even though you appear to be using Jira Cloud 

https://jira.atlassian.com/browse/JIRAAUTOSERVER-159

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events