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
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
Amir Kazemi
Posted an hour ago in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

10 views 0 2
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