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.
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.