Forums

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

Validation SIL script questions

Jay Keck February 16, 2022

Hi,

I'm using Jira Data center and I'm using SIL scripts to validate certain fields at transitions. The question I have is about what the behavior is when using multiple fields in the validation check, where one of the fields can be modified on the transition screen.

In my example, let's say I have 2 fields, Field1,Field2. 

Field1 is a pulldown with an initial value in issue before transition of 1

Field2 is a number field with an initial value in issue before transition of empty

The goal of the validation is to check to see that when Field1=2 that Field2 is not empty

I've exposed both Field1 and Field2 on the transition screen. 

When I start my transition the transition screen show Field1=1, which is correct. But then if I change the value of Field1 to 2 before hitting enter I would expect my validation check to flag an error since I didn't enter a value for Fieeld2, but it doesn't happen since the transition screen's logic is still seeing Field1's initial value of 1, not the updated value of 2.

So my question is does SIL logic in transition screens have access to any changes made in that transition screen, or is there a snapshot taken of field values at the time the transition screen is displayed and the SIL logic only uses that and NOT anything entered in the transition screen?

Thanks,

Jay

1 answer

0 votes
Jay Keck February 16, 2022

Ha, I just found the solution in another post! Using the new way of accessing the data seems to work fine.

https://community.atlassian.com/t5/Jira-Service-Management/Bug-with-SIL-scripts-and-custom-fields/qaq-p/1885935

Thanks @Addactis Support&Operations !

Suggest an answer

Log in or Sign up to answer