How can I write a filter that finds stories with a newly added label

I wrote a filter that finds stories that have been created in the past day if they have a particular label:

project = "My Project" AND labels in ('my_label') AND created > -1d

This works if the story is created with the label, but I need a filter that finds existing stories that this label was added to in the past day.

Is this possible?

Thanks,

Jim

2 answers

1 accepted

Hi Jim!

Looking for an updated date/time of the labels field specifically is currently not possible with JQL. However, you could search for issues that were updated in the last day and have this label by using the query below:

project = "My Project" AND labels in ('my_label') AND updated > -1d

By the way, you could use the following query to search for changes on numerous fields:

project = "My Project" AND assignee CHANGED AFTER startOfDay(-1d)

 

Cheers!

Joao

Hi Joao,

That's disappointing but I really appreciate your answer!

Thanks,

Jim

Hi Jim! I did some research over here and found the suggestion below raised to our development team. You can watch it for updates: https://jira.atlassian.com/browse/JRA-36694 -- Joao

Hi Joao, this ticket doesn't appear to be valid anymore?

Hi! For some reason, the bug had a security level set to only allow viewing by the Reporter and Atlassian Staff.

There should be no reason for that, so I removed it and you shall be able to see it now.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,990 views 12 18
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot