Can you please help with this requirement. We have a issue item workflows, of which I want to automate transitioning for this scenario.
After an issue is moved to workflow X, after 4 weeks from this date, automatically transition the workflow to Y (if there are no open bugs, issues, tasks,...) is that possible? I started the below which I hope is a good starting point.
you could use automation addon
trigger on transition
when issue is transitioned to status B, you can fill a custom date field with the date
manual triggered with CRON settings
when issue has status B AND date >30d, then transition to status C
+ optional empty the date field (if you have a workflow that can go back to Status B)
I have some extra addon, which shows the time that the issue stucks in the current transition. if automation is possible to read this information, then you would only need rule #2.
Developer from Automation here.
As mentioned above by Alex one method would be to set a custom date field, then have a scheduled rule that checks the date saved. JQL by default should support time in status checks though, so you can use this provided you don't care which status is transitioned from otherwise you should do the above, anyway if not you can do something like: status != "Done" and status changed to "TO DO" after -4w.
Regarding your mention if no linked issues being opened, you can also use a "Related issue condition" and provide JQL to check if one of them isn't Done or Open depending on your setup.
Here's my example of course you'll need to change statuses based on your workflows, might be worth testing it with a shorter time in status first to make sure it works for you:
If you require further help with your rule then you can contact our support here: https://support.atlassian.com/
For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events