We have a Release board in Jira - it contains tickets that are added manually whenever we'd like to release a new version to our clients.
An automation for Gitlab milestones is listing the issues that are considered in the release. And... during the testing phase of the release process our team creates several issue (bug) tickets. We'd like to be notified (based on one of the custom fields to which certain peoples are assigned) whenever a new bug ticket is created.
We tried to use automation with When: Issue Linked has a type: Relates / Blocks but when trying to get to destination ticket (which is the Release) and we'd like to get the custom field that contains any of the users that need to be notified - it doesn't work :(
We'd like to resolve that on automation level without any dirty dev hacks. Is that possible? Does any of you have a simple solution that can be applied?
I'll be super happy to get some hints on that.
Hi Arkadiusz_Niewiadomski!
Couple of questions:
1. Are the Bugs a standard task in your environment or were they configured as a sub-task?
2. is the Goal just a notification when the bugs are created?
Dependent on the options, let me know if any of this helps. Good luck!
Hi @Alicia Peebles - think you for your answer.
Yes, bugs are standard issues and are created in 2 different boards but linked to the Release ticket by using - `is blocked by` or `relates to` relations.
I added a validation for certain issue type being linked to ensure that nothing else would trigger the notification. List of bugs are not considered as usually we got 1, max 2 bug tickets per release - it'd be enough to send single notifications when those are linked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For a question like this, context is important for the community to help. Please post the following:
Until we see those...
If your rule trigger is Issue Linked, the smart value {{destinationIssue}} may be what you are seeking: https://support.atlassian.com/cloud-automation/docs/jira-automation-triggers/#Issue-linked
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboy- thanks for the clarification - I'm attaching the image with the rule in the shape I thought will do the job but it does not :(We are working with company managed projects only.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Would you please show the audit log details for the rule execution, and expand all of the areas?
The "blocks" link has direction, so it is possible the rule triggered from the opposite direction and thus the first condition on issue type is failing.
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.
Thanks for that information, and...
As the log shows the source issue AR-92 is not a Bug and so the rule stopped. This is because the rule likely has single-project scope and the rule executed from an unexpected link direction. You probably were expecting FS-8656 (the Bug) to be the trigger issue.
Issue Linked (and their directions) can be confusing in rules. For your scenario, I recommend two changes:
I recommend fully testing your rule, perhaps replacing the Send Slack Message action with a write to the audit log until it works predictably, and then put the message action back.
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.