Hi Automation Community!
I'm trying to figure out a way to automatically tag tickets that are stalling in our downstream release process. I need help understanding if this is feasible to solve using Automation for Jira and if yes, a recommended way of proceeding.
User Story:
As a Release Manager,
I want Automation for Jira to add a custom label to any Jira issue that has sat in our Jira Workflow Status "Ready for Pre-Prod" for 5 calendar days,
so that I can quantify and measure the impacts of downstream dependencies.
Thanks in advance for your support and help!
Hello @Jack Arndt ,
This is possible with Automation for Jira and after some testing I was able to accomplish what you asked for.
What you need to do is create a rule that will run a trigger (I would suggest scheduled everyday, at start of day), search for issues matching your query, and then edit the issue to add the label. This is the rule I created, I set my trigger to Manually triggered so its easier to test.
and this is the JQL I used to find those issues.
project = "Sample Project1" AND status = "In Progress" AND NOT status changed after startOfDay(-5d)
As you can see, there is no labels prior to me manually running the rule.
After running the rule...
I would suggest to also create a rule that will remove the label when the issue is transitioned to any other status. I hope this helps and answers your question. Let me know if you need any clarification.
Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
edwin - i came on this post when working on a similar problem. But what I found is that the rule as you set it (which is also how I initially solved it) removes existing labels. Essentially the 'edit field' action seems to replace the field value, which with labels is not always what you want.
If anyone has a way to _add_ a label without affecting existing labels, I'd love to know...
Or if other people are not seeing this function have the same effect, that would also be great to know...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ah! I figured it out.
When you use the Edit Field action, there's a text field for entering the new value. To the right of that field there's an elipsis overflow menu icon. Clicking that icon gives you options for adding or removing explicit values from the field, instead of just replacing the field.
@Jack Arndt you might want to update your automation rule to avoid losing label data
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for Sharing @Alex Bernardin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Alex Bernardin that setting still didn't work for me and old labels are getting wiped out. Any help is appreciated!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@edwin vasquez - I am wanting to follow your step of automating the daily trigger, but I can't find any way to do this. Once I have tested my rule with the manual trigger, how do I transition this to a automated daily trigger?
Nevermind - I have located the scheduled trigger :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have created this rule for auto add the label. the rule is working fine
Query- Could you please give me the idea of giving like this?
{{#issue.labels}}"{{.}},{{/}}" {{issue.labels}}"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@edwin vasquez The above info you have shared is really helpful and will hopefully solve a similar problem I am currently working on. I have one question though, is Automation for Jira a plugin you are using or is it existing functionality in Jira Cloud? If it is a plugin could you please send me the link to it in the marketplace so I can look into this? Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.