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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.