Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Getting error while transitioning issue using postfunction

Edited

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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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

Max Foerster - K15t
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jun 11, 2019

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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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