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,293,245
Community Members
 
Community Events
165
Community Groups

How to get the current item index using Smart Values

Mohamed Adel Community Leader May 20, 2021

I would like to get the current index for a list of items using smart values 

 

According to the documentation i can get the first/last and iterate over all items , but i don't find a way to get the current index 

https://support.atlassian.com/jira-software-cloud/docs/smart-values-lists/

1 answer

1 accepted

1 vote
Answer accepted

Hi @Mohamed Adel , you can access index and you can find it in the documentation you shared. Screenshot attached :)

Selection_397.png

Mohamed Adel Community Leader Sep 28, 2021

Thanks @Martin Bayer _MoroSystems_ s_r_o__  for your reply , I got the solution at this time but forget to close it :D 

Ok :D if you think this topic and my answer can help someone else, it would be kind of you if you accept the answer...at least it will be marked as solved :D

Hi @Martin Bayer _MoroSystems_ s_r_o__ , 
Would it be possible to get an example how to use the {{#list}}{{index}}{{/}} ? How would you use it, say for a custom field?


I'm trying to extract the value of the currently selected item of the list (and then convert it to a numerical form). 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,092 views 34 44
Read article

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