Can a workflow condition alter name of transition?

Is it possible for a workflow transition condition (in java plugin or other scripted plugin such as ScriptRunner) to alter the displayed name of the transition button?

The particular scenario is I'd like to have a 'any status can transition to this one' transition, but in certain cases, I'd like to rename the button to say things like 'Blah [Bypass]' so draw attention to it not being 'expected' for the current conditions, but to still allow it. 

1 answer

1 accepted

1 vote
Accepted answer

No, a condition simply returns "true" or "false" to represent "this transition can be used at this time"

However, for what you're trying to do, just rename the transition in the workflow editor.

I understood the return value, I was meaning more that it had access to the workflow/transition objects prior to them being displayed. From your response I gather there is no endpoint/ability to make runtime alterations to those objects?

The example I gave was simplistic - but the overall intent is to avoid having LOTS of duplicated transitions in the large/complicated workflow.

There's no mechanics for doing anything like that.  The code has a show/hide function for "condition tells me pass or fail", but nothing else.  The conditions have no access to do anything other than return true/false.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,097 views 4 9
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