Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Getting error while transitioning issue using postfunction


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

1 answer

0 votes
Moses Thomas Community Leader Jun 11, 2019

@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. 

@Moses Thomas 

Transition do exist on the workflow.if i disable the validator it is working and transition is happening.else i get this error

Moses Thomas Community Leader Jun 11, 2019

@Vineela Durbha  Please could you display what is in the Validator ?

@Moses Thomas 

I am just setting a customfield value

CustomField tf=ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("TemporaryField");
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"

Moses Thomas Community Leader Jun 11, 2019

@Vineela Durbha  Well  i go in this  direction to  get the values of  the custom field  if  found  the  update with new value.

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.CustomFieldManager
import com.atlassian.jira.issue.fields.CustomField

CustomField tf = ComponentAccessor.getCustomFieldManager().getCustomFieldObject("customfield_86900")
String cf86900Value = issue.getCustomFieldValue(tf)

if(cf86900Value == 'somevalue') issue.setCustomfieldValue("tf, newvalue")

@Moses Thomas 

There is no issue with my validator . It works completely fine.

I just wanted to know how is this validation blocking my postfunction of transitioning issues

Hi @Vineela Durbha

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. 

Best, Max

Moses Thomas Community Leader Jun 11, 2019

@Vineela Durbha  Most likely it's because  of  the custom field  "TemporaryField" does  not exit please check this ? once you  are log in as admin ? check  custom fields to see whether field exist or not.

@Vineela Durbha did you manage to resolve this ? , I am facing the same error after JIRA Upgrade.

Suggest an answer

Log in or Sign up to answer