Forums

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

How to move an issue from project A to project B

Rafael Moreira December 17, 2018

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

3 answers

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
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.
January 7, 2019

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.

2 votes
Taranjeet Singh
Community Champion
December 17, 2018

@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.

Rafael Moreira January 7, 2019

Hi,

I would like to move the issue automaticaly if, the issue type of the issue change for "mandat".

0 votes
Taranjeet Singh
Community Champion
December 18, 2018

@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.

Suggest an answer

Log in or Sign up to answer