Forums

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

How to write a JQL query that will return all pending tasks in a project with the key "PROJ"

Bruno Jimenez
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 27, 2024

Dear community need your HELP. I have two questions, appreciate your support.

1. How to write a JQL query that will return all pending tasks in a project with the key "PROJ"?

2. how to write a JQL query that finds all issues that do not have an owner specified and that have a status of "Open" or "New" but were updated in the last month.

 

3 answers

2 accepted

3 votes
Answer accepted
Florian Bonniec
Community Champion
November 27, 2024

Hi @Bruno Jimenez 

Welcome to the community

1- project = PROJ and status = pending

2- Owner is empty and status in (Open, New) and updated < startOfMonth()

 

Regards

Bruno Jimenez
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 27, 2024

Hi @Florian Bonniec  thanks a lot for help! Appreciate it!

 

1 vote
Answer accepted
Cael Metcalfe
Contributor
November 27, 2024 edited

1. Assuming issue type is "Task" and "Pending" is the target status:

project = PROJ AND type = Task AND Status = Pending

2. Assuming "Owner" is the name of your custom field, and you mean the calendar month before the current:

Owner IS EMPTY AND Status IN (Open, New) AND updated < endOfMonth(-1) AND updated >= startOfMonth(-1)

Else just date back one month, change end to: updated > -1m

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.
November 27, 2024

Hi @Bruno Jimenez 

Welcome to the community.

JQL: project = "PROJ" and type = Task and status = Pending

This should help you to find the JQL for option 2 as well.

JQL: status in (Open, New) and .....

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, confluence administration, confluence admin training, confluence learning path, manage users and permissions, confluence certification, atlassian learning, cloud admin tools, streamline collaboration, confluence admin best practices

🚨New Confluence Admin Course Alert!

Manage Confluence like never before! This new learning path teaches you how to manage content, users, and permissions while optimizing user experience. Built for admins at all levels who want to confidently lead and unlock more innovative collaboration.

Learn more
AUG Leaders

Atlassian Community Events