You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hi Community,
I am facing a challenge.
I have 2 projects - Project A and Project B.
Project A workflow looks like - Open -> Review -> In Progress -> End
Project B workflow looks like Open -> End
Project B edit screen has customfield_1 customfield_123
When in Project A - It goes from Open -> Review
It creates a ticket in PROJECT B of type task, with summary as Summary-XYZ
Similarly, when goes from Review -> In Progress
It creates a ticket in PROJECT B of type task, but with summary as Summary-ABC.
I want a validator in Project B workflow to allow End transition only if the customfield_1 and customfield_123 is filled but only when the Summary-ABC and not for other. Also is it possible to Hide these custom fields when summary is XYZ.
Is this achievable via scripting/behavior?
Appreciate the help!
Yes this is possible via scripting/behavior when using the Scriptrunner plugin. You will want to use "behaviors" for hiding the custom fields based on a regex value (you can base it on anything, but I am suggesting regex based on the info provided so far).
For the validator, you can also do this as a scripted validator by writing a groovy script to check the value of those custom fields and ensure they are returning a truthy value. This might be easier with JMWE than Scriptrunner due to the drop downs in their UI, plus their self help documentation and their test functionality from the workflow designer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.