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

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 custom field picker get index of current value

Hi everyone,

I am trying to get the index of a custom field value.

What will be the right syntax?

{{issue.CustomFieldName.value.id}}

2 comments

Another Way I thought would be to use string function {{CustomFieldName.abbreviate(1)}} But it doesn't work.

Please help.

{{issue.CustomFieldName.charAt(0).isNumeric}}

Selection of the custom field name is 1-xxxx

Still not working. How to get the value in numeric format???

{{#=}}IF({{issue.CustomFiledName.value.startsWith("3")}},3,IF({{issue.CustomFiledName.value.startsWith("2")}},2,IF({{issue.CustomFiledName.value.startsWith("1")}},1,0))){{/}}

 

Fieldname= 1-first value,2-second value,3-third value

It works finally

Like Brock Jolet likes this

Comment

Log in or Sign up to comment
TAGS

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