Forums

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

Automate a locked dropdown field

Kasper Ramstafer May 26, 2023

I'm trying to create an automation rule where when the custom dropdown field "Sprint" is updated the locked dropdown field "Current" will update it's value.  I created an If/else statement of if the first selection in the dropdown field "Sprint" is picked, then the first selection in the locked dropdown field "Current" will update its value to its first option. And so on with the options 2, 3, 4 etc. But I'm having issues with the "Current" field selecting the values.  I'm typically getting the error "Error while parsing additional fields. Not valid JSON."

In the additional fields sections I've tried both of these codes:

{
"fields": {
"Current": "{{triggerissue.fields.Current.Option1)}}"
}
}

 

{
"fields": {
"Current" = "Option1"
}
}

1 answer

1 accepted

2 votes
Answer accepted
JM Perrot
Community Champion
May 26, 2023

Hey @Kasper Ramstafer 

If you want I can share you a correct syntax 

{
   "fields": {
      "customfield_XXX": [{
         "value": "Your option in words or your smart value"
      }]
   }
}
Kasper Ramstafer May 26, 2023

Thanks for your assistance!  I figured out the issue.  The locked field I was trying to use is from a plugin and isn't compatible with Jira automation.  Even after using your correct code it didn't work so I had to do more digging.

Suggest an answer

Log in or Sign up to answer