Hello,
I need to make Epic link mandatory while creating ticket and we have only Script runner plugin, so can any please provide the script runner code to use it in the Create issue transition validator.
Thanks In Advance!!
Hi @Ram Raj
If you use a 'Simple Scripted Validator', you shouldn't need any code assuming that you want the Epic Link field to be mandatory all of the time - just select the field in question and an error message you want displayed. Docs for ref: https://docs.adaptavist.com/sr4js/latest/features/workflows/validators/built-in-validators/simple-scripted-validators
Hope that helps - Steve.
Thanks @Steve Long -Evelon- for your responce.
i not familiar with coding for script runner, Please find the screenshot attached and help me which one we need to select to make the Epic Link field mandatory while creating issue and based on your response and also provide me with code if needed.
Appreciate for your Kind response!!
Thanks!
Ramakrishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Ram Raj the easiest way for yourself will be to select the 3rd option down - 'Field(s) required validator (ScriptRunner)' and then select the 'Epic Link' field!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Steve Long -Evelon-
I tried with your suggestion but it is not working, Please see the below screenshot for the same.
Please suggest anything if i am missing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Ram Raj it won't show a * next to the field (as you're not using field configuration), however if you press 'Create' and try to create the ticket, it should fail as expected.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.