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

0 votes
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?

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:


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.

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"

0 votes
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
Published Nov 29, 2018 in Jira

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,112 views 0 8
Read article

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