Hi,
I'm setting up an automation from a Jira Cloud project to a Jira Product Discovery project. The actor of the rule is Automation for Jira. The scope of the project is set to multiple projects (both the Jira Cloud and JPD project), I also tried to use the global scope.
The strange thing here is that automation manages to edit the issue (changing the link) but automation does not manage to assign the issue to a new user - see:
Any ideas on how to fix this? Thanks!
Ok, here's the positive version:
Your code will need to check that the new project and issue type configuration matches the current issue for
(I'm pretty sure this is not an exhaustive list)
In the cases of mismatches, you'll need to think through the consequences. For example, if a field on a source issue does not exist in the target, you should ask the user if they really do want to destroy it. If there is not a shared status, then what status do they want to move it to?
Your code will need to make assumptions for your users (this is bad - you will almost certainly have a user asking why you have destroyed their data), or, better, ask them what they want to do in each case.
Once you've got answers, you can feed it all into the move issue api calls you will need to make.
Hi Nic
Thank you for this detailed answer. Should I use a normal http request to "/rest/api/2/issue/" with PUT ? Or with POST (only at Ticket creation ?)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, neither. This is where there is no "positive" answer. There is no REST API to move an issue. So there's nothing you can do here directly.
What I was talking about was the Java API internal to Jira, that you can call in scripts and Apps.
The best you can do with REST is get a copy of the issue to be moved, then write code that creates a new one in the new project (adjusting for changes as above), and replay the comments into the new one. Then shut-down (or delete, although I would not recommend that ever). You'll lose data on the new one doing it this way.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok here I'm stuck. I already have a script (java) to create a "clone" (it's not a perfect clone but works for what I have to do) in an other project, it works. I also have a script to link new issue to old one, it works. My problem : each user can create an issue with linkswhen he works in his project than move the issue. But if a user move an issue, then he can't edit it anymore, well he can't add link.
Ok while writting this I got an idea, use my script to create a "clone" in an other project then link it but from the original. I'll try it, thank you !
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.