I created a workflow that converts something and attached the result to the ticket.
(open) -> convert-[sil post function ] -> (resolved) -> close [cond] closed
when the conversion is successful I like to do autotransition to the closed state.
to do that I have the following condition on the closed state
cond:
if (#{success} == "true")
{
autotransition("close", key);
}
this works but the screen is not updated to reflect the new status.
What would be the proper way to do that in a sil function?
@haa , does you history shows that the new status is reflected?
Does your post function gets executed before or after the store in database postfunction?
Can you try the integrity checker to see whether that corrects the status of the ticket?
Yes the postfunction gets executed without any problems. And the condition also gets executed without any problems. Reload the page then shows the new status. But I expect the page to reload automatically.
The question is where is the intended place to put autotransition.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah.. so the status is actually changed in the screen and works. It is only that you want it to reflect without refreshing the page.
With the way JIRA is built, a refresh is needed to fetch the updates and show it in the screen.
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.