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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Look up issues Smart value

Hi Admins,

I using look up issue smart value in an automation which shows all issues under an epic with some satisfied conditions and order by some custom field (ASC)

Now i would like to pick only 1st issue in that list. Earlier i am using smart value as {{#lookupIssues}} {{key}}, {{/}} -- It gives all issues.

 

any clues??

 

Thanks,

Raju

2 comments

Hi @Seetham Raju

 

You can try using regex to match a key number from the previous JQL output something like this:

Regex Expression: [A-Z]+-\d+ 

 

It matches the first issue.

Mykenna Cepek Community Leader Jul 14, 2021

List capabilities with Smart Values are documented here:

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

For your use case, scroll down to the "Combined function examples" section. Short answer:

{{#first}}
Like # people like this

Hi @Seetham Raju 

Adding to what @Mykenna Cepek describes...that works when you are inside the list iterator.  To just get the first issue, use {{lookupIssues.first}}

Best regards,
Bill

Like # people like 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