I'd like to do the following:
But how do you assign a converted sub-task under a task?
Hi @Gavin
Assuming you're using the Edit Issue Action to change the issue type, you'll need to include the parent field as part of the edit. If you're not able to select it from the available fields, you'll want to do it via json like this:
{
"fields": {
"parent": "PARENTKEY OR SMART VALUE"
}
}
Thanks for the response.
Unfortunately the didn't work. in the audit log I got " Error while parsing additional fields. Not valid JSON." What kinda of worked was
> edit issue
+ linked issue > is subtask of <parent>
{
"fields": {
"parent": "MDM-1920"
"environment": "Thanks for raising {{issue.key}}.",
"labels": [
"bugfix",
"blitz_test"
],
"Custom Field Name": {
"value": "red"
}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Gavin - Let's take a step back on this one. I don't think this one should require JSON. Can you please share a screenshot of your rule?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So I was looking at the errors and it states "(Issue type is a sub-task but parent issue key or id not specified. (issuetype))" which was what you mentioned above but not seeing where I can put the parent ID.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just above where you selected Sub-Task as the issue type, there's a drop-down "Choose Fields to Set" where you can set the desired fields you wish to edit as part of it.
Note - That warning message is critical. If your Task and Sub-Task have different workflows, this is going to fail. The only way that you can use automation to convert one issue type to another is if they share the same workflow. Otherwise, this would be a "Move" operation which is only possible through a manual function on the Jira UI
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks for the response. Hmm I'm looking at it there
I'm not seeing where I can set the parent ID.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Makes sense that parent isn't there because you're currently editing an issue type to change into a sub-task. I would just take the following action:
{
"fields": {
"parent": "MDM-1920"
}
}
Lastly, is the expectation that every action item will become a child of MDM-1920 for perpetuity, or just this one situation? If the former, you're all set. If the latter, you'll need some type of business logic to help define what parent it should be linked to.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
{
"fields": {
"parent": "MDM-1920"
"environment": "Thanks for raising {{issue.key}}.",
"labels": [
"bugfix",
"blitz_test"
],
"Custom Field Name": {
"value": "red"
}
}
}
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.