Forums

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

Can automation copy the value of a custom field to Team field when an issue is created?

Manhar Sharma January 17, 2024

I would like to create an automation that once specific custom field (PE Team) is updated the value is copied to Advanced Roadmaps Team Field for specific Eng. teams. I have tried various options to copy it using the Advanced options but not successful. Not sure what is wrong here. 

{
"fields": {
"customfield_12102": "customfield_10114"
             }
}

customfield_12102  = PE Team

customfield_10114 = TeamScreenshot 2024-01-17 205110.png

3 answers

0 votes
Harsh
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.
January 17, 2024

Hi @Manhar Sharma 

 

One way to do this is the jira automation to achieve this. But to do so, please check the field type of both the fields. Secondly you mentioned the value should be copied to Advanced Roadmaps Team Field for specific Eng. teams. Is this specific eng team is also a custom field or what is this? 


Happy to help. 

Manhar Sharma January 17, 2024

Hi Harsh,

Advanced Roadmap Team field is a locked field with Team picker so I believe this is a Atlassian field which can't be edited. The Eng. team field I am trying to use is a single-select field with the below options. I have created the option values in Team field as well with these same options. The reason I am trying to do this is that the Advanced Roadmap Team field will have all the teams created in the whole organization which will include teams from other domains as well which are irrelevant in Eng. projects.Screenshot 2024-01-18 100944.png

 

Screenshot 2024-01-18 100620.png

Harsh
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.
January 18, 2024

Hi @Manhar Sharma 

Thanks for clarification.
follow up question - lets take an example scenario - when a issue is created/updated, with 'PE Team' value = Carrier Alloc (an example), you want this value to Advanced Roadmaps Team Field (where Advanced Roadmaps Team Field is team picker) is that correct?

And both these fields have the same option , irrespective of the field type (i.e. PE team = Single select and Advanced Roadmaps Team Field = TeamPicker)

Manhar Sharma January 19, 2024

hi Harsh,

this is correct

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.
January 17, 2024

Hi @Manhar Sharma -- Welcome to the Atlassian Community!

I have not tried to set that field with a rule, but I suspect it is a single-select field type.  And so the syntax for setting it would be as shown in this documentation, with the "id" attribute:

https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Single-select-custom-field

Kind regards,
Bill

0 votes
Laurie Sciutti
Community Champion
January 17, 2024

Hi @Manhar Sharma and welcome to the Community!  Team field is numeric....is your custom field numeric?

Manhar Sharma January 17, 2024

Hi Laurie,

Advanced Roadmap Team field is a locked field with Team picker so I believe this is a Atlassian field which can't be edited and the custom field PE team I am using is a single select fieldScreenshot 2024-01-18 100944.pngScreenshot 2024-01-18 100620.png

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