I am trying to transition issue using postfunctions which has a listener and validator which calls this listener. But I am not sure why I am getting below error
[c.a.jira.workflow.OSWorkflowManager] Caught exception while attempting to perform action 191 from workflow 1748709 on issue 'SWPR-724'
com.opensymphony.workflow.StoreException: Error marking step #3360573 finished: root cause: Tried to update an entity that does not exist.
When I do the same on another tranistion screen which does not have this validator it is working fine
@Vineela Durbha Yes because this transition does not exist anymore,
if you are the Jira admin you will need to go to the workflow put back the transition, click it on issue so that changes could take effect, then you can remove this transition again.
if the transition doesn't exist it should not appear in workflow of this ticket.
I am just setting a customfield value
IssueManager issueManager = ComponentAccessor.getIssueManager();
issue.setCustomFieldValue(tf, "new value");
so that based on this value a listener will be triggered if the value is "new value"
@Vineela Durbha Well i go in this direction to get the values of the custom field if found the update with new value.
CustomField tf = ComponentAccessor.getCustomFieldManager().getCustomFieldObject("customfield_86900")
String cf86900Value = issue.getCustomFieldValue(tf)
if(cf86900Value == 'somevalue') issue.setCustomfieldValue("tf, newvalue")
so could you please post a screenshot of the post function configuration or better: the boolean expression used in the conditional execution section of your post function? Without that piece of information, we won't be able to assist you.