Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Automation question: how can I extract the id of the selection of a single select custom field?

We want to compare the selections in two single select custom fields by extracting the id's of the selections and then taking action depending on what the numeric difference between the two numbers is. 


Field A options are Apple, Berry, Cherry, Dog and the selection is "Dog".
Field B options are the same and the selection is "Berry".

The difference between the option ID's should be 2

The discussion in the automation documentation covers obtaining the value corresponding to an index, but not the reverse.

Any suggestions?

1 answer

1 accepted

1 vote
Answer accepted
wwalser Atlassian Team May 12, 2021


Here is a visual example of how to experiment and test things like this in the future:

Screen Shot 2021-05-13 at 11.52.11 am.png

Screen Shot 2021-05-13 at 11.52.18 am.png

Thank you!

That does solve it for me; however, it is giving me the relative position in the list only if I use math to subtract the first item's id from all the results, making it cumbersome.

Is there a way to access the relative position of the selected item?

wwalser Atlassian Team May 16, 2021

Unfortunately no, Automation does not have a way to understand relative position within select boxes.

Suggest an answer

Log in or Sign up to answer
Site Admin

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you