Forums

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

Using development field in validator

David Rodriguez September 29, 2022

Hello everyone!

We are trying to make a validator with this definition:

  • Users cannot transition to resolved if there are commits and issue don´t have a version

I used:

issue.customfield_10500.length==0 to check if there is some information (customfiled_10500 is the name of development field and we don't know why) but the result for a isssue without development info is "false"

Screenshot 2022-09-29 at 13.05.09.png

If I try something like issue.customfield_10500["commits"].length we get an error.

 

Any idea?

1 answer

0 votes
__ Jimi Wikman
Community Champion
September 29, 2022

The question is if that field is actually 0 or null though...

David Rodriguez October 7, 2022

Thanks Jimi! It seems that this is no t the problem. I tried to check "null", "empty", 0, "0" ... with no luck. 

So, I created a custom field that is filled when a commit is created and with this basic field, I think that I can do everything we need.

Regards

Like __ Jimi Wikman likes this
__ Jimi Wikman
Community Champion
October 7, 2022

Glad you got that sorted :)

Suggest an answer

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

Atlassian Community Events