Hello @Pawel
By Flag, what do you envision? How are you going to consume that flag?
If it only to query all the overdue issues, cant we query it with JQL itself?
Basically am trying to understand the usecase to give you an appropriate solution :)
Hi Fazila,
When you right-click on an issue you have an option to "Add flag" which makes the issue's box red-ish.
The point is to have a Job in ScriptRunner running overnight, picking up overdue issues (duedate < startofday()) issues defined by JQL and flagged them.
I'm looking for a ScriptRunner's script to put into SR's Job.
Thanks,
Paul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah ok.. Got the use case :)
Setting the flag actually sets the value 'Impediment' to the field 'Flagged'.
In you groovy code, you can update the ticket's flagged value to Impediment to achieve this.
Refer to an existing answer https://community.atlassian.com/t5/Jira-Software-questions/How-to-flag-an-issue-using-Java-API-scriptrunner-Listener/qaq-p/1324312 for the script
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.