Hi,
i have been trying to transition issues with parameters programmatically. I am using IssueInputParameters to update system field values. I have been able to update almost all system fields except for timespent(log effort)
I am unable to set that effort using the setTimeSpent() of IssueInputParameters, however it does not reflect in the Issue and i do not notice any error.
Code Snippet:
IssueInputParameters issueInputParameters = new IssueInputParametersImpl();
//Populate IssueInputParameters with field values
...
//Validate if the transition is valid for the issue
IssueService.TransitionValidationResult validationResult = issueService.validateTransition(user, issue.getId(), actionId, issueInputParameters);
if (validationResult.isValid()) {
log.debug("Executing valid transition ");
transResult = issueService.transition(user, validationResult);
...
}else {
//transition failed
}Any pointers/help in this case is really appreciated.
Thanks in advance.