Hi,
I wanna to fo a move from project A to project B, i try to do that with post-function.
I copied the issue and after I delete it, but Jira show me an error, it's normail is like a sucide of the issue.
Any one know ho can I do that ?
Best regards
Rafael
You can't move an issue in a post-function - the issue will go into a completely broken state because you are altering structural data about it while it is being changed.
Move your code to somewhere where the issue is not in a state of flux.
Also, try not doing this. Moving an issue is not a trivial thing - your code should be checking all the data is compatible for the source and target configurations and amending it when it is not.
I would actually fix your process here, rather than try to do something complex and pointless. Moving an issue with code is indicative of a poorly designed process or configuration, and moving issues should only really be done when you are doing one-off things - housekeeping or genuine "I created this in the wrong project".
The best fix for your case here is probably to remove the "mandat" issue type from the source project so that your users can't create the wrong type in there.
@Rafael Moreira Please refer this document that will guide you on how to move issue/issues from one project to another: https://confluence.atlassian.com/jiracoreserver073/moving-an-issue-861257345.html
Please let me know if this works for you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I would like to move the issue automaticaly if, the issue type of the issue change for "mandat".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Rafael Moreira Please let me know if my answer worked for you. If yes, it would be great if you can mark this answer as accepted, for others to follow.
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.