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
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.