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

0 votes
Accepted answer

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 Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,304 views 12 19
Read article

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