Automation Rule - Copying values from 1 custom field to a standard field

Christopher Vickery February 1, 2024

Hi Team,

I'm hoping someone will be able to help me create an automation rule.

I currently have 873 issue types that contain values within a field:

  • CDE Label (customfield_22231)

I need to automatically move all values from the 'CDE Label' field for all 873 issue types over to a new standard field in JIRA:

  • Labels

I've tried a few automation rules but keep getting error messages. I would really appreciate it if someone is able to help show me the rule I should be creating.

Thanks,

Chris

1 answer

1 accepted

2 votes
Answer accepted
Kalyan Sattaluri
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.
February 1, 2024

Welcome to community, what type of field is "CDE Label".

Is it also "labels" type?

Also, please share a screenshot of your current rule and error message from log for folks to help quicker. 

Christopher Vickery February 1, 2024

Hi Kaylan,

The 'CDE Label' is the same as the 'Labels' type where you can add as many labels as you would like. I've added a screenshot

CDE Label to Labels.png

I ended up deleting the automation rule I set up as it was annoying me how it wasn't working! I will have another go tomorrow and send a reply. Appreciate everyone's help.

Thanks

Chris

Kalyan Sattaluri
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.
February 1, 2024

hello @Christopher Vickery  Your requirement is pretty straight forward.

Please create a new rule.

Use Trigger - Scheduled .. with JQL and give a query which identifies your 831 issues. Make sure you check the box which says "Run JQL and execute for each issue in query"..

Then Action - Edit Issues -

  • Choose your target field, which is "Labels",  from "Choose fields to set" drop down,
  • then click the 3 ellipsis and choose "Copy"..
  • and select your originating field from the drop down below.

Your final rule should look like below screenshot.

 

image.png

Maybe try with a JQL which is simple.. like key = JJJG-123 and test the functionality with 1 issue, if it works then you can do the same with all.

Please share screenshot so others can help you if issues..

 

Christopher Vickery February 2, 2024

Hi Kalyan,

The automation rule you suggested worked perfectly :) I will show the steps I followed below for anyone else who has a similar issue:

Create Rule - Scheduled:

  • Select the 'Run a JQL search and execute actions for each issue in the query' tick box
  • Add the JQL query to capture the issue type(s) you would like to update:

Scheduled.png

Action - Edit issue:

  • Choose the target field from the 'Choose fields to set' drop down box. E.g. Labels
  • Select the 3 ellipsis and choose 'Copy'
  • Then select the field you want to copy the value from. E.g. CDE Label

Edit issue fields.png

Once the rule is run, the value within the 'Labels' field will be copied across to the 'CDE Label' field for all issue types contained within the JQL query.

Thanks again Kalyan.

Chris

Like Kalyan Sattaluri likes this
Kalyan Sattaluri
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.
February 2, 2024

Great to hear. One reminder that if this is a one time sync/copy, disable the rule after you have completed the task, that way it does not run unnecessarily next week onwards.

 

Also, please accept solution if satisfied so others can find it when searching.

 

Suggest an answer

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

Atlassian Community Events