Hello,
For some reason my Jira Automation is unable to clone a ticket from one project to another because it's running into this error:
Hi Everyone! The issue was that it was a multi project clone and the source ticket from Project A did not contain of all the required fields to create a ticket in Project B. Thank you all so much for your help :)
What is the scope of your rule (in the details at the top): single-project, multiple-project, or global?
A single-project scope rule can create / clone issues into other projects, but it cannot access them otherwise. Link Issues is trying to edit the other issue, and so that will fail in a single-project scoped rule.
To solve this, please change the rule scope to multiple-project (or global as needed). Your Jira Site Admin will need to help do that change in the global automation area of Jira.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is possible to create Links within the Clone issue action, isn't it? Would that circumvent the problem?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, that is possible for one-and-only-one link during issue create. (I believe that is all that is currently supported by the REST API.)
So, the workaround for a single-project scope is to add the link with JSON like this using an update in an advanced edit:
{
"update": {
"issuelinks": [
{
"add": {
"type": {
"name": "Relates"
},
"outwardIssue": {
"key": "{{triggerIssue.key}}"
}
}
}
]
}
}
I just tested to confirm this still works for issues created in other projects with a single-project scope rule.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Kathryn Kerr if you are getting 400 bad request then please raise a ticket with atlassian vendor. https://support.atlassian.com/
For some automation rule, we are also getting the 400 error so atlassian is investigating on it.
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.
Hello @Kathryn Kerr
What is the output in the rule execution log?
The trigger is a Field Value Change, but is that change coinciding with the issue being created, or is that change happening on issues that already exist?
If it is on an issues that is has just been created then you might want to try adding a Re-fetch action.
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.