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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can I search for issues where a label was added within a date range?

Esther Strom Community Leader Nov 12, 2019

We're looking for a way to find issues that have had a specific label added before a specific date.

I've used JQL to find changes in fields before, using queries like

 

status WAS "Resolved" BY jsmith BEFORE "2019/02/02"

But when I try to use any of the "history" functions (including WAS), I get an error saying that "History searches do not support the 'labels' field."

 

How can we do a search that will give us what we need? We do have ScriptRunner, which includes the Enhanced Search. We are on Cloud. 

2 answers

Hi Esther,

The labels field does not currently hold an updated date or time in a manner that is accesible with JQL as history searches do not support the 'labels' field.

Please check the description of this ticket. Atlassian rejected this due to the limited demand

https://jira.atlassian.com/browse/JRASERVER-36694

Meanwhile, you can try, if this solves your problem up to a certain extent.

Sample JQL

project = "Project Name"AND labels in ("Label Name") AND updated > -1d

 

Thanks,

Gaurav

Esther Strom Community Leader Nov 13, 2019

Thank you, but I know that query will not get us what we need, because updated will get you any ticket where any of many fields were updated. We need to be able to specify specifically when the labels field was updated.

Like GP likes this

Yes totally agree with you! but history searches do not support the 'labels' field & Atlassian is not going to work on this in near future.

https://jira.atlassian.com/browse/JRASERVER-36694

 

Thanks,

Gaurav Pratap [GP]

Hi @Esther Strom 

As an alternative solution, you can try Issue History.
With this app, you could select issues by Label and monitor the history of all changes that were made in issues by dates you need.

Hope it helps

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Software

How to create Jira issus from Excel file?

When to use CSV importer When managing your processes in Jira, there are many occasions where you need to create a lot of tasks. Creating them one by one will cost you a lot of time and effort and i...

4,528 views 22 32
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you