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 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

64 views 0 5
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