Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

Bug with SIL scripts and custom fields

Hello,

 

We have several SIL scripts to verify some field before closing a jira ticket.

For exemple, this script below verifies that the "Entity" custom field is not set to a default value named "ND" (it's a dropdown list) :

string errorMsg = "The entity cant be " + customfield_10300;
if (customfield_10300 == "ND")
{
return false, "Entity", errorMsg;
}

 

But since we upgrated SIL Engine to version 5.8.0.2, these scripts dont work.

 

Indeed, when we select for exemple "Value A" for the field Entity, when the SIL Validator script is called, we still have the error "The entity cant be ND" telling that the field is still having the default value. It's like if the script is running before reading the new value of the field.

Can you provide us some help to fix these scripts, or correct the bug if it's one ?

1 answer

1 accepted

1 vote
Answer accepted

Hello,

The Anova support just responds us, and it runs perfectly :

The issue you’re encountering, although represents a problem for you, is actually not a bug, but a fix for an older bug.
We needed to make a difference between the values stored in the issue and the value from the transition screen, so we made the convention that we’ll use:

At a certain version, we haven’t discovered exactly where, a bug was introduced and the issue value wasn’t being returned anymore. We discovered it a few weeks ago and fixed it, by restoring the expecting behavior. We knew that there may be some customers who have already implemented scripts using the wrong version, but we assumed the risk of upsetting them, by knowing that the fix is really needed.

using : getInput("customfield_10300")

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

Next level incident management in Jira Service Management

Hello Atlassian Community! We’re thrilled to announce some exciting changes to incident management in Jira Service Management Cloud, in order to give your teams extra muscle during incidents, and ...

1,487 views 20 12
Read article

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