Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to create subtasks where the parent task is a service request using automation for jira

Harold Prestage
Contributor
March 12, 2025

 

Trying to create subtasks where the parent task is a service request using automation for jira, it works when i create a new task but doesn't work when i set the create new issue as a sub tasks, so rule validation is all green but  it gives me the following error when i execute it 

 

"Unable to create issue
Issue type is a sub-task but parent issue key or id not specified. (issuetype)"

2 answers

1 accepted

2 votes
Answer accepted
David Friedrich
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 12, 2025

It looks like your automation rule is missing a reference to the parent issue when creating the subtask. In Jira, a subtask must always be linked to a parent issue, and the error suggests that this reference isn't being set correctly.

Make sure the "Parent Issue" field is set to "Trigger Issue" (or use {{triggerIssue.key}} in the field if needed).

Maybe it'll help if you could share a screenshot of your current rule configuration to analyze this further.

Thank you!

Harold Prestage
Contributor
March 13, 2025

image.png

Harold Prestage
Contributor
March 13, 2025

image.png

David Friedrich
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 13, 2025 edited

As your rule has a scheduled trigger, switch value of field "Parent" to "Current Issue" for all Sub-Tasks. As you first create a Service Request, the following Sub-Tasks should be added below that issue.

Ok, I actually just realize, that this isn't working...
For reasons beyond my understanding you actually have to branch your rule:

 

image.png

image.png

David Friedrich
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 13, 2025

Oh, for your rule you should set branching to "Most Recently Created Issue" below your SR and then continue with the creation of further Tasks below outside the branch.

Like • 2 people like this
Harold Prestage
Contributor
March 14, 2025

Branching to the "Most recently created issue" works perfectly, thanks @David Friedrich 

Even when you try to branch the "Parent issue" or "Current Issue" it doesnt work

Like • 2 people like this
0 votes
Varsha Joshi
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 12, 2025

Is it possible to share the screen shot of your automation rule?

Harold Prestage
Contributor
March 13, 2025

image.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events