Fast-track transition an issue doesn't work on hidden transition

Hi,

I recently upgraded to Jira 6.3.1, Misc Workflow Extensions add-on 3.5.1 and Script Runner add-on 3.0.3.

I've been using the fast-track post function of the Script Runner to transition an issue via a hidden transition—hidden by Misc Workflow Extensions' condition that hides the transition for users, but allows programmatic usage—since the upgrade fast-tracking no longer works when the transition is hidden, but does work if it is not.

Hidden transition's condition:

The fast-track post function:

Has something changed in either Script Runner or Misc Workflow Extensions add-ons that prevents fas-track post functions from seeing the hidden transition?

Any help is much appreciated.
Anatolijs

2 answers

1 accepted

1 vote

I don't know why it used to work, but it makes sense to me that it doesn't work now.

Conditions can only return true or false, so the MWE condition will just return false for the current user. If the condition returns false then it's not available to fast-track.

I don't know what version of SR you upgraded from, perhaps previously it used some lower-level API to do the transition, and now it uses IssueService which checks that the transition is valid for the current user.

I can't think of a good way to handle this. Personally I think the issue is in MWE. If I think of something I'll get back...

Hi Jamie,

Thanks for your answer. I've been able to work around this with David from MWE.

Anatolijs

Cool... is there anything you can share to help other people in a similar predicament?

David added an additional post-function that transitions an issue and gave me a snapshot version of his add-on. The new post-function is similar to the one he already had in the official version called Transition Parent Issue. It provides the same functionality as fast-track, but also respects the Hide Transition condition.

So unfortunately this solution isn't publicly available yet, but hopefully the new post-function will be included in a new release.

Can you please share the the additional post function?

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

190 views 1 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you