Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events