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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

75 views 0 5
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