Have to restrict the duplicate issue linking, If the child issue type has the value in a particular field (This field value got from a previously linked parent ticket). I wrote an automation rule for this and it deleted the previously existing issue link also. Please help me with this.
For a question like this, please post images of your complete automation rule, including details of all actions / conditions, and of the audit log details showing the rule execution. Those will provide context for the community to offer suggestions.
Until we see those...
Automation rules run (i.e., trigger) after something happens. They do not restrict issue changes, although they can undo/reverse them (e.g., delete a duplicate link). You may want to investigate if there are workflow validators possible to do what you ask.
Kind regards,
Bill
Hi @Bill Sheboy
below attachments are the automation rule-related screenshots. This automation rule deletes the previously existing issue link also. My requirement is to restrict the duplicate linking or delete the triggered duplicate link
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. Please clarify: what is not working as you expect, as the rule seems to have removed the link?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy
This rule deleted all "is part of" type issue links. My requirement is not to remove every first linked ticket.
For example, the first time I linked the ST-286 and ST-285 with the "is part of" link. At that time I got the Fix versions field value in ST-286. Later I linked ST-286 and ST-290 with the same "is part of" link.
In this case, this rule has to delete the second time link only (between ST-286 and ST-290).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How is the issue linking happening: manually, from another rule, something else? Knowing that may help to isolate the linking.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's linking by two types first one is manual linking and the second one is If I provide the Fix versions field value in the source ticket, It will be linked to Fix version-related issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How does the second link get added: with an automation rule, manually, or something else? If it is with an automation rule, you could check if the link is already present to avoid adding the duplicate.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy
There are two ways to link the issues first one is by manual. In a second way if I enter the Fix version field value in the child ticket it's linked to the corresponding Fix versions parent issue by automation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I believe this takes us back to your original idea, of deleting just one of the links.
I wonder if it would be possible to, after detecting there are duplicate links, use the advanced edit with JSON to remove the link using its id value, rather than the link-type: https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/ Perhaps try experimenting with that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy
I have tried this automation by using a web request and it throws the attached error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I confirmed your results that the JSON edit with the rule action is using a function which can only add and copy. Here are a couple of other approaches to try:
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.
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.