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,557,826
Community Members
 
Community Events
184
Community Groups

Use scriptrunner to perform validations

Edited
Mathew Monteiro
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Apr 16, 2023

Hello there, 

We need to create an automation on a project in Jira for a particular issue type . 

We have the following fields on a project say Project A for issue type Epic 

a. QA Due Date( date )

b. Dev Date ( date ) 

c. FixVersion ( varchar ) 

d. Project Manager ( jira user )

e. Product Owner ( jira user )

The main goal here is to allow the Project Manager or the Product Owner mentioned in the ticket to populated the FixVersion which is always null initially but he/she cannot edit it once populated

Before the FixVersion gets populated the script must check if the QA Due Date and the Dev Date is not empty if true then an exception should be trigged saying please populated those fields first. 

This should validate irrespective of any status in the workflow

How can I go about this ? 
I am fairly new to Script-runner. Hoping that this wonderful community can provide some inputs

Thanks in advance. 

 

1 answer

0 votes
Ram Kumar Aravindakshan _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 02, 2023

Hi @Mathew Monteiro

From your description, you seem to want the validation to occur on the transition screen.

You can use ScriptRunner's Behaviour to handle the validation while setting the Fix Version/s field to read-only.

Please let me know if you would like a sample code.

Thank you and Kind regards,

Rma

Suggest an answer

Log in or Sign up to answer