Can I hide a transition based on a condition (example - Status = Accepted)
If any knows a groovy script that would be great,
Thanks
@Rob B Have you tried using Jira workflows inbuild "Condition" feature?
I want to hide the transition rather than condition - Its complicated.
@Rob B what would be the condition of hiding transition ?
Means in which case/scenario transition hide and unhide?
Hide transition - Condition is status
I need to hide it rather than condition because the transition is used by a script in another transition.
Ok, I guess you don't have jira workflow enhancer installed
https://marketplace.atlassian.com/apps/575829/workflow-enhancer-for-jira?tab=overview&hosting=datacenter
This will make your life easier for things like this. Check it out and see if it is worth what it cost to you. Alternatively you could browse past versions and get to a free one if it is compatible with whatever jira server version you're running.
Once you have that installed it's as simple as selecting the transition you are interested in, click on conditions > add condition > universal condition. The setup you describe would be setting the expressión {status} = Accepted to be TRUE (only then the transition would be visible)
Sadly i dont get to choose new add-ons. We already have Jira Misc Workflow Extensions, Script Runner and Enhancer Plugin for JIRA
Hi @Rob B ,
If my understanding is right, you want to hide a transition if the current status of the issue is "Accepted" - could you confirm this?
Regards,
Anjali
Yes exactly
@Rob B did you look at JMWE's "point-and-click" Conditions, such as "Current Status Condition" for your requirements?
You can use Current Status Condition from JMWE for your requirement, as mentioned by @David Fischer
Ive got that but i need to hide it so the transition (post function) can run any other time. Hope that makes sense?
I need to hide it so it can be run at any other time without conditions.
It looks like you're new here. Sign in or register to get started.