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

Look up issues Smart value

Raju Mandapaka July 14, 2021

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

Comment

Log in or Sign up to comment
Darshan Mandhane July 14, 2021

Hi @Raju Mandapaka

 

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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 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
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 14, 2021

Hi @Raju Mandapaka 

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
TAGS
AUG Leaders

Atlassian Community Events