JIRA does not have a built-in feature for that, but I believe you should be able to achieve this with a custom script using the Script Runner plugin.
I've found a similar script to add labels automatically, but based on a different condition. Maybe you can customize that script.
Hope this helps
To find Overdue issues, you do not need to add a label. It is a direct search criteria that you can apply.
Look at a sample query at https://jira.atlassian.com/issues/?jql=resolution%20%3D%20Unresolved%20AND%20due%20%3C%3D%20%220%22
Usage of labels will be an over head as you need to remove them also if the due date is updated.
Yes, I know how to find them. The thing is we want them to be labeled so that they jump out when we're not searching just for the overdue issues.
It's easier to remove a label than it is to change the due date. In some of our usecases as well, we don't want the overdue label removed, we want a record that it was overdue.
Ah that explains. So considering that you are using OnDemand, I would suggest to create a filter, run a REST call from an external script to get those overdue issues, and again invoke another REST call to add the label. THis external script has to be scheduled to run from an machine that you have.
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot