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.
Example:
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?
{{issue.field name.id}}
Here is a visual example of how to experiment and test things like this in the future:
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unfortunately no, Automation does not have a way to understand relative position within select boxes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.