Came across this limitation in Jira. We are adding multiple MR's to one ticket and when applied the template rule to move the ticket to DONE when the MR is merged it moved the ticket even if only one MR is merged, what should be the rule to check for all the MR's state is MERGED and only move to DONE if this condition is true.
Hi Nirmal,
Sometimes, one should look to a problem from the other side.
In your case:
I hope this will help you.
Dick
I tried to play around with the template "When a pull request is merged → then move issue to done". But I could not find a smart value condition which will check for non-merged MR's. This rule will not wait for other MR to be merged but change the ticket to DONE when any one of the MR is merged!
Forgot to mention, we are tagging the MR using the `Development` option in jira.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you guide me on how to gather the list of MR's which are tagged in the Ticket using the automation rules. TIA
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
well, you could start by sharing what you have now...
maybe I can help out with syntax or by looking at your problem from a different angle.
:)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, MR is a Merge Request (sorry I didn't get that in the first place).
If you're coupling merge requests to a ticket, the ticket key is usually used as the first part of the merge request name. From whatever tool you're using to integrate Git into Jira, you'll need to access the synchronized GIT repository in Jira from within this Jira plug-in to find how many merge requests a ticket has.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Dick , We have configured Jira to couple merge requests to the ticket, We are not blocked there. Let me share some SS.
Here we have 2 MR's attached to the ticket. You can notice the status is changed automatically to 'DONE' when one of the MR is merged. We don't want that to happen. We want to change the status automatically only when all the attached MR's is merged.
We have used the Automation in the Jira project to achieve this. Is it possible to add some condition in the rule to check for all the MR's status and move the ticket to 'DONE' only if everyone of them is in 'MERGED' status.
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.