Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,551,662
Community Members
 
Community Events
184
Community Groups

Automate a locked dropdown field

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

0 votes
Answer accepted
JM Perrot
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.
May 26, 2023 • edited

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"
      }]
   }
}

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