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

automation custom field picker get index of current value

Benoit June 15, 2020

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

Benoit June 16, 2020

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

Please help.

Benoit June 16, 2020

{{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???

Benoit June 16, 2020

{{#=}}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
AUG Leaders

Atlassian Community Events