Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage
Highlighted

Conditional Transition on Creation of a Bug in a different project

I have a requirement to on demand copy a bug request from one project to another. The bug workflow in both the project is different. So we have a status mapping available.

I have given a button for users to create the bug workflow as per their need. But I am finding it difficult to transition the newly created Bug workflow to the correct status.

I am using the below post function to create the bug issue in a different project.

Create issues and subtasks by JWT

I am using set fields to set the status of newly created bug issue 

%{00016}= "In Progress" ? "Analysis" : (%{00016} = "Open" ? "Open" : (%{00016}= "In Review" ? "Ready for Test" : (%{00016} = "Resolved" ? "Done" : (%{00016} = "Reopened" ? "Open" : (%{00016} = "Closed" ? "Done" : "Done" )))))

It works for In Progress, Open and Reopened but doesn't work for other status i.e. In Review, Closed, Resolved and I get an error as below 

org.ofbiz.core.entity.GenericTransactionException: Commit failed, rollback previously requested by nested transaction.

Any inputs to resolve or another way to approach this requirement?

Regards,
Aditya

 

 

1 comment

Ok so the approach was correct. The reason for this not working was some validator in the target workflow which was restricting the status updates.

Comment

Log in or Sign up to comment
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you