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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,556,707
Community Members
 
Community Events
184
Community Groups

Custom fields in lookupIssues

Edited

I'm building an automation rule that performs a JQL query based on a schedule and sends a Slack message using the result of the query. At the moment, I am using the lookup issues action to perform the JQL query.

However, based on the lookup issues description here https://support.atlassian.com/jira-software-cloud/docs/automation-actions/, it seems like we are not able to access custom fields?

I have tried 

{{#lookupIssues}} {{Custom Field}} {{/}}

(including other variants as suggested by other users such as using "Custom Field", customfield_id, field.Custom Field, etc) to no avail. 

On the other hand, when I checked the "Run a JQL search and execute actions for each issue in the query." checkbox in the schedule trigger and perform the JQL query there, 

{{issue.Custom Field}}

works as expected. But the problem now is a Slack message would be sent for each issue.

This is not ideal because I want to format my Slack message as follows:

Some text here:

{{#lookupIssues}} {{Custom Field}} {{/}}

some more text here

which would not be possible if one Slack message is sent per issue. Is there an alternative that can solve this?

2 answers

1 vote
Italo Qualisoni [e-Core]
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.
Jul 14, 2020

Hi @Nuraini Aguse ,

I'm new to this lookup feature, but it seems that custom field are not available in the lookup action indeed.

What you can do is lookup issue searching by your condition eg:

JQL : customfield  = A and status = Open

and your action will have all issue with that customfield A , not ideal but still possible to aggregate the information.

I'm afraid i didn't help you with your question, let's see if someone from Automation team can answer it :)

Also I'm sharing this great document that describe Slack integration, maybe it can be helpful for you:

https://community.atlassian.com/t5/Automation-articles/Send-a-list-of-issues-in-Slack-with-Jira-automation-s-newest/ba-p/1411819

Thank you for your response. Unfortunately the Custom Field can have multiple possibilities and it's impossible to enumerate all of them.

Would love to have the ability to access the Custom Field from lookupIssues because there's so many use cases for it :)

Like Vandyck Lai Kai Yong likes this

Would love to have the ability to access the Custom Field from lookupIssues because there's so many use cases for it :)

Big +1

Like # people like this
0 votes
Krister Broman _Advania_
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.
Jan 24, 2022 • edited

For Reference to others that are looking for this information

Adding custom fields to Lookupissues does now work for cloud, communicated here: 

https://community.atlassian.com/t5/Automation-articles/New-lookup-issues-fields/ba-p/1873978

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events