Groovy Script Runner - Action X is Invalid with scripted condition enabled on transition.

I have a status configured with multiple recursive transitions tied to itself.

On each transition I have a scripted condition to check whether the button needs to be displayed based on whether a custom field has been set:

!cfValues['OSP Cost']
!cfValues['Broadband/Access Cost']
!cfValues['Transport Cost']
!cfValues['S&P Cost']

If I manually set the fields through the edit screen, the buttons hide/show as expected based on the logic, but when I try to do so by clicking the transition's button, I get "Action X is Invalid".

Any ideas on what I might be doing wrong? Keep in mind, each of the 4 transitions are recursive.

4 answers

This widget could not be displayed.
Henning Tietgens Community Champion Dec 05, 2013

What did your transitions do? When do you get the error? If you click on the button to open the transition screen?

This widget could not be displayed.

The transitions display a screen with a single number field. Once complete, they route the issue back to the same status. I'd like to fast-track the issue to the next status once all 4 of the above fields are filled in, but I haven't added that piece since this piece isn't working.

Basic configuration:

Conditions:

Script workflow function : Simple scripted condition : Checks script:
!cfValues['OSP Costs']

Post Functions:

  1. Set issue status to the linked status of the destination workflow step.
  2. Add a comment to an issue if one is entered during a transition.
  3. Update change history for an issue and store the issue in the database.
  4. Re-index an issue to keep indexes in sync with the database.
  5. Fire a Generic Event event that can be processed by the listeners.
 
This widget could not be displayed.

The issue happens when I click submit on the transition screen.. I get an error in a red box at the top of the transition that says "Action X is Invialid"

This widget could not be displayed.
Henning Tietgens Community Champion Dec 05, 2013

Mmh, that doesn't sound like a problem with the condition. Are there any errors in the log file (catalina.out)?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

202 views 1 3
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