Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Custom data integrity checks

jeremy.mordkoff@dzsi June 5, 2020

We have a custom field "branch" which is supposed to tell our engineers where to push a commit. The problem is that sometimes the fixVersion field gets updated and the branch field does not, so that they now disagree. 

Is there a way to write custom verification code that would be run whenever a change was saved in Jira? It would snarf up a mapping of branch to fixVersion and verify that the two were compatible. 

Even better, would be to make the fixVersion field read-only to most users and set the fixVersion automatically whenever the branch field was set. 

If this could be done, are there people who would implement this for me and what would be the approximate cost?  I am running 7.3.6 now, but I plan to upgrade soon. 

 

2 answers

0 votes
Bill Sheboy
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.
June 5, 2020

Hi jeremy.mordkoff@dzsi 

If you do not want to purchase an add-on product, you could implement your noted "even better..." approach using automation rules to set fixVersion when branch is set, and reset fixVersion if someone tampers with it. 

Please see here for documentation on automation rules:

https://support.atlassian.com/jira-software-cloud/docs/automate-your-jira-cloud-processes-and-workflows/

Best regards,

Bill

0 votes
Bastian Stehmann
Community Champion
June 5, 2020

Hi jeremy.mordkoff@dzsi ,

 

I think the app Scriptrunner might be worth a look.

There you can create custom validators or use the behaviour part to modify the behaviour of fields.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events