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,297,308
Community Members
 
Community Events
165
Community Groups

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