Want to link my current issue to any specific issue/epic if any user adds a label to the story. For example,
Label name: Release 1.0
If the STR-1111 card has a label Release 1.0, it blocks the STR-2222
How to achieve this via automation. Somehow it's failing with error: You cannot link an issue to itself.
Thanks for using automation, I'll try to help you with your question. First up is the issue/epic you want to link to always the same one? Or would it be dynamic, and how would you know which epic to link to?
If it always the same one you could use an automation like this (in the example it will always link to the epic AUTOM8-32):
Also I might be reading into your example too much (Label name: Release 1.0) but have you thought about using versions and releases instead of labels for this kind of tracking?
If you go to the Releases page you can create a version (e.g. Release 1.0) and then link issues to that version using the fix version field. This allows you to track your progress towards a release. You can also add automations to trigger when you release a version (e.g. send release notes of all the issue completed in a version).
Hope that helps,
Actually, I'd like to link disparate tickets about log-rotation together so that when one of my team looks at one, they notice that there are others like it (linked via relates-to).
Is there a way to do this? I'm new to automation and spent all day trying without luck to get it working.
Cheers, and Merry Christmas!
Hi @Matthew Day
Is there something common to all the log-rotation tickets (e.g. does it contain "log rotation" in the summary/description, is there a label etc...)? This will help the automation identify the correct tickets to target.
There are a number of trigger options you could use (e.g. issue create, schedule, field value changed).
And then you can add a branch to link it to multiple issues or just a simple issue link to link to a singular parent (e.g. Epic).
Very simply: labels = log-rotation
Most of my current (very limited) automation triggers off components added to tickets that trigger creation of sub-tasks. Very simple.
I'd like to apply any type of mechanism (labels, components, etc...) that then simply links related tickets (with the same mechanism identifier) without necessarily having them sit in epics that never end.
i.e. if I have 350 servers, and 3 or 4 of them are problematic for log rotation, then applying a log-rotation label would then automatically link the tickets with 'relates to' within Jira.
This way, when someone on support creates a ticket, it would automatically identify other open (or resolved) tickets with the same general identifier.
Ok @Matthew Day , I'm not sure if I've got it 100% but here is a starting point.
This automation runs every time the labels field is updated. There is a condition to check that the label is log-rotation. If it passes the condition then it searches for all the other issues with the same label and links each of them to the issue that triggered the automation. Below are some more details on each component in rule and also some thoughts on making it more specific:
A word of caution with this: As you use the label log-rotation more and more it will increase the number of tickets that are linked to your issue. So at some point you might end up with more than 100 related issues. Is there any other criteria you can add to the JQL search in the branch component to make sure only relevant issues are linked? Maybe by creation date or status?
Let me know if that helps
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