Forums

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

Unable to remove Strategic value Label field in Jira automation

vaughan_dickson
Contributor
June 24, 2025

I have a Label field named Country Code containing these values UK, USA, JPN...., Strategic.

I then also have a Multi select field Called Region with the values UK, USA, JPN....,Global("instead of Strategic") .

(1) if Country Code field is empty then, the Country Code field will be set to Strategic and the Region to Global.

(2) if Country Code field value changes to UK, then  set Region (multi select) field = UK and Remove the Strategic value from the Country Code label field and Global from the Region Field .

(3) if Country Code field value USA is added (to existing above UK value) then set Region (multi select) field = UK, USA. The same scenario will apply if JPN value is added to the Country Code UK, USA, JPN, then Region = UK, USA, JPN.

 

However if 

(4) if Strategic is added to the above  Country Code field then:

(A) All the actual Country code values must be removed (by making use of Jira automation) from the existing label field and only Strategic value last added must remain and then:

(B) In-addition the Region field will/must be set to Global.

 

In simple the label field can contain multiple  customer codes , the same applies for the region field(multiple regions) . However, the moment Strategic  is added to the existing Country code label field, then the label field should only retain the Strategic value and!!! Jira-Automation must re-move all other Country Codes!!!.

 

You can have multiple Country Codes/Regions but not a combination of (any) country codes and Strategic/Global as per example below.

Country Code = UK, JPN, USA, and Region =  UK, JPN, USA, (this is correct)

Country Code = Strategic and Region = Global (this is correct)

Country Code = UK, JPN, USA, Global and Region =  UK, JPN, USA, Global

(this is in-correct)

Is there a way to remove the none Strategic values from the Label field with out clearing out the field completely, as this is causing a Loop in Jira automation the moment the field is empty...thanks in advance.

 

 

1 answer

0 votes
Dilip
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 24, 2025

Hi @vaughan_dickson 

could you please overide the value of the multi select custom field when Strategic value is added

Detailed steps mention on this article: scenario 1: https://support.atlassian.com/automation/kb/how-to-update-a-select-field-multiple-from-the-content-of-other-fields/

vaughan_dickson
Contributor
June 24, 2025

Yes I tried this. and it works 100%. however I am unable to override the Country Code label field to only strategic AS WELL. the moment i use the script below the automation goes into a loop:

{
"update": {
"customfield_xxxxxx": [{
"remove": {"value":"Strategic"}
}]
}
}

Suggest an answer

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

Atlassian Community Events