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

This widget could not be displayed.

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

This widget could not be displayed.

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
Posted yesterday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

82 views 0 1
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