automation custom field picker get index of current value

Benoit
Contributor
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}}

3 answers

1 vote
Benoit
Contributor
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

0 votes
Benoit
Contributor
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???

0 votes
Benoit
Contributor
June 16, 2020

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

Please help.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events