Hello Community,
I am seeking assistance with automating the linking of cloned tickets between our Support and Development projects in Jira. Here is the scenario and the steps I have taken so far:
Scenario
Support Ticket Creation:
- A support ticket is created in our Support project (team-managed Kanban project).
Cloning to Development:
- The support ticket is automatically cloned into our Development project (team-managed Scrum project) using an automation rule.
Linking Tickets:
- I need the cloned development ticket to be automatically linked back to the original support ticket.
Steps Taken
Step 1: Automation in Support Project
- Created Automation Rule in Support Project:
- Trigger: Issue Created
- Condition: Issue Type = Support
- Action: Clone Issue to Development Project
- Summary:
SupportKlon - {{issue.summary}}: {{issue.key}}
This automation works perfectly. The support ticket is successfully cloned into the Development project with the correct data, including the issue key and summary.
Step 2: Automation in Development Project
- Created Automation Rule in Development Project:
- Trigger: Issue Created
- Condition: Summary contains
SupportKlon - - Action 1: Create Variable
- Variable Name:
originalIssueKey - Smart Value:
{{issue.summary.substringAfterLast(": ").trim()}}
- Action 2: Find Issue
- JQL:
key = {{originalIssueKey}}
- Action 3: Link Issues
- Link to: Trigger Issue
- Link Type:
relates to
Issues Encountered
Automation Not Triggering:
- The automation rule in the Development project is not triggering as expected. The audit log shows that the rule execution is successful, but it also reports the following error:
- Error Message:
Issue did not match the specified <span>JQL</span> <span>(most likely)</span>. The selected rule actor does not have permission to view the <span>issue</span> <span>(or its security level)</span>. The issue was deleted by Jira or was not yet <span>indexed</span> <span>(rare)</span>. We recommend using the <span>"Issue Fields Condition"</span> <span>for</span> more consistent results.
Permissions:
- The error message suggests a potential permissions issue. I have ensured that the rule actor has the necessary permissions in both projects:
- Browse Projects
- Edit Issues
- Link Issues
JQL Validation:
- Manually running the JQL query
key = {{originalIssueKey}} in Jira finds the issue correctly, indicating that the smart value extraction and JQL are likely correct.
Request for Assistance
Could anyone provide guidance or suggestions on how to resolve this issue? Specifically:
- How to ensure the automation rule in the Development project triggers and correctly links the cloned issue back to the original support issue.
- Any potential misconfigurations or overlooked steps that might be causing the automation to fail.
- Could this issue be related to permissions, and if so, what specific permissions should I verify or modify?
Any help or insights from the community would be greatly appreciated!
Thank you,