Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I need JQL query help for my automation filter - excluding tickets that have had prior statuses

Georgina Vint July 17, 2023

I have an automation rule where a QA ticket for a teammate is created each time a certain type of issue moves to QA status. However, I do not want a QA ticket to be created if the ticket has already previously been in QA status. In our workflow, if QA fails, it moves back to in progress then the status has to go through QA again, but I don't want a second QA ticket to be created. I've figured out how to include an IF condition using JQL with this condition, but I need the opposite condition, which is to exclude any tickets that meet this criteria:

status changed FROM "In Progress" TO "QA"

Could someone please help me exclude any tickets where the status has already been moved from in progress to QA? Thank you!

5 answers

1 vote
Laurie Sciutti
Community Champion
July 17, 2023

@Georgina Vint ~ are you creating a linked QA issue?  If so, you would want to use the Related Issues condition instead of just the JQL condition.  If that still doesn't work, can you provide more details of your existing automation rule?

Snag_eab7bde.png

0 votes
Marc - Devoteam
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 18, 2023

Hi Georgina,

Set the JQL as follows: 

status was not in (QA)

or if the status is not one word 

status was not in ("In QA")

0 votes
Mohanraj Thangamuthu
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 17, 2023

You could try JQL similar to following query to get the results.

 

project = PROJ and issuetype = task and status was not in ("In Progress")

0 votes
Gokaraju gopi
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 17, 2023

@Georgina VintFollowing automation might help you
at25.JPG

0 votes
Laurie Sciutti
Community Champion
July 17, 2023

Hi @Georgina Vint ~ you should be able to use something like status was not "QA", provided there is no other transition to QA other than from "In Progress"...

Georgina Vint July 17, 2023

Thank you Laurie! However, I get this message:Screenshot 2023-07-17 at 2.50.12 PM.png

Laurie Sciutti
Community Champion
July 17, 2023

@Georgina Vint remove the "In" portion...

Georgina Vint July 17, 2023

@Laurie Sciutti this seems to have broken the automation because it prevents a QA ticket from being created upon the status changing to 'QA' :\

Evgenii
Community Champion
July 17, 2023

Hi, @Georgina Vint 

You can try such query:

status was not "QA" BEFORE -5m

It will look, that issue was not in QA status earlier, than five minutes ago from current moment

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events