I perform the following code, it indicates that the transition is successfully completed but it is not reflected. I have tried reindexing but noting, I am quite sure that I am missing something very simple, could any one please help me? Thanks
ActionDescriptor thisStep; //supplied IssueService issueService = ComponentManager.getInstance().getIssueService(); IssueInputParameters issueInputParameters = new IssueInputParametersImpl(); IssueService.IssueResult transResult; issueInputParameters.setStatusId(status.getId()); //validate transition TransitionValidationResult validationResult = issueService.validateTransition(user, issue.getId(), thisAction.getId(), issueInputParameters); //check if the transition is valid if (validationResult.isValid()) { log.debug("Valid transition"); //actually, transitioning transResult = issueService.transition(user, validationResult); if(transResult.isValid()){ log.debug("Transition successful"); issue = ComponentAccessor.getIssueManager().getIssueObject(issue.getKey()); log.debug(issue.getKey()+" is "+ issue.getStatusObject().getName()); } else { log.debug("Invalid transition: "+transResult.getErrorCollection().getErrorMessages()); } } else { log.debug("Invalid transition: "+validationResult.getErrorCollection().getErrorMessages()); }
Community moderators have prevented the ability to post new answers.
You don't need to set Status in IssueInputParameters. Only fields like resolution, if needed, are set there. And how are you getting thisAction? Are you sure the action id is correct?
Yep, I had the action id's wrong. Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you check the indexing on an issue that has had this done? Look at the issue on it's own in the issue view - check the status there. Then do a search that includes it (any will do - simple, jql, etc, even if it only returns that one issue) and check the status column on the issue navigator.
Do the two reported status match, or is one the previous value?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your help, but I figured out my problem.
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.