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.
Transition do exist on the workflow.if i disable the validator it is working and transition is happening.else i get this error
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.
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"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.