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,637,620
Community Members
 
Community Events
196
Community Groups

Automation to find empty colum

I'm writing an automation to send a message to Slack when:

Trigger: issue transitions from Status A to Status B

  Then: Lookup Issues

     JQL Search (sprint in openSprints() and status = "QA Review"

  IF: Matches

     {{lookupIssues.size}} equals 0

  THEN: Send slack message

 

Basically, if an issue transitions out of QA review, and there are NO issues remaining in QA review, then I want to send a message in slack prompting a deployment to our stage environment.

The problem is that the automation is saying "no issues matched your jql search" (which is good!)... so it's skipping the if: matches block. 

How do I test for the absence of issues in a specific column so I can then take an action?

 

2 answers

1 accepted

0 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Aug 25, 2022

Hello @kevinsherman 

Can you show us the details of your Lookup Issues action and your IF component?

Is "QA Review" an actual Status, and is it the only Status mapped to the column you are wanting to check?

I did a similar rule checking the In Progress column, where "In Progress" is the one and only status mapped to the column. My rule did not stop with the Lookup Issues condition. I think your IF component may be incorrect. I used the Advanced Compare Condition for that component.

Screen Shot 2022-08-25 at 4.30.14 PM.png

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Aug 25, 2022

You'll need to look at the current column definition (the status it contains) and add that into your query.

If, for example, your "test" column contains the status dev-complete, int-test and QA, then 

sprint in openSprints() and status in (dev-complete, int-test, QA) 

will return 0 when the column is empty, and you can use your if based on that 0 result.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events