Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,559,791
Community Members
 
Community Events
185
Community Groups

Need Script(Code) to make epic link mandatory while creating the ticket

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

1 answer

1 accepted

0 votes
Answer accepted
Steve Long -Evelon-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 15, 2023

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

Appreciate for your Kind response!!

 

Thanks!

Ramakrishna

Like Steve Long -Evelon- likes this
Steve Long -Evelon-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 15, 2023

@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!

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.

 

Capture.JPGEpic.JPG

Steve Long -Evelon-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 16, 2023

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

@Steve Long -Evelon- Will Give a try to create Epic.

Thanks Steve!

 

It Worked.

 

Thanks Again!!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events