Hi. I have Jira issues that follow a consistent naming convention. For example 'ABC_### - full name of request goes here'
When a new issue is created and the summary/title is updated (have it just set up to be manually ran for right now) , I want to automatically link existing issues that start with the same 7 characters ('ABC_###'). I tried using a substring on {{issue.summary}} but couldn't quite get it to work.
Any help would be greatly appreciated!
Hi @kcarpenter -- Welcome to the Atlassian Community!
For a question like this, please post images of your complete rule and the audit log details showing the rule execution. Those may provide context for what is happening, enabling the community to give suggestions. Thanks!
And...if the substring is always 7 characters at the start of the summary, have you tried using the left() function: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/#left-int-length-
Kind regards,
Bill
Hi Bill.
Thanks for your reply. The left function is exactly what I was looking for!
My rule runs successfully now. However, it is not linking the other issues in my project that start with the same 7 characters. Is there a change that needs to be made to my if statement?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is the purpose of that condition, as it seems to be testing a value against itself?
And, would you please show the details of your link issue action? The rule shows "success" but that action does not appear in the log for some reason.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's what I'm struggling with - I don't know how to make it test values against all other issues in my project.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Perhaps try this to find the issues, and then iterate over them to link to the trigger issue:
Please add any additional conditions/tests you need to the JQL to ensure you get the correct issues to link.
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.