Let's say I have a worflow A and a workflow B which alter data in issues of different issue types. During a transition from A I want to trigger a B transition if specific requirements are satisfied which I can only check when I am inside of A. Merging the functionality into one workflow is not an option since B is changing the status from an issue what is considered as bad practice when you do this in your code.
Currently I am calling the validateTransition function from the IssueService interface. Look here for further information:
All I get is an error message which says: "You've tried to execute a function transitionName what is not valid for the current state of the issue."
When I do the transition manually by clicking the button, everything works fine. What am I not seeing here?
I do not quite understand what you are doing here.
I do understand that you have two different workflows, but you don't explain how you are using them or what you want your code to do, because you have not told us what you are doing with the issues involved.
At a guess, I think what you might have is:
And what you're trying to do is "when issue A goes through a transition in workflow AAA, issue B should be pushed through a transition in BBB" - is that right?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.