It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to add validation in Edit Screen?

Basically I am looking to add a validation for a custom field while editing the Jira ticket.

I can achieve the same while creating Jira through workflow validation.

I need to know how it can be done while Editing?

1 answer

1 vote
Nic Brough Community Leader Oct 29, 2015

Technically, there still isn't a way to do it really.  The standard trick is what you've already suggested - move the edit into the workflow

However, if you have the Script Runner add-on, that has some "edit validation" hooks you can use.  I'm not sure if there are other things that can get to these hooks yet.

Hi Nic Brough,

We have script runner add-on for jira , there is no section "edit validation" on add-on section. we are observing only,

  • Script Consol
  • Built-in script
  • Script fields
  • etc...

I am looking in wrong location.

Scriprt runner version:4.3.15



Nic Brough Community Leader Nov 28, 2017

They've been removed from SR, as they were too limited in what they could do.

They could catch ordinary edits, and bulk changes, but if you changed issues in Jira Software, Portfolio or Service Desk, the structure of Jira's code meant there was no way to put validators in.

Behaviours might be able to help you a bit though, that's worth a look.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

1,075 views 7 0
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you