Forums

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

My post fonction doesn’t update my field ?

achraf pato April 29, 2019
It doesn’t work Also If i execute the sil in a runner gadget

In the end of the sil file i log the value of the costum field to verify that it works, and it gives me the right value

2 answers

0 votes
Ben Poulson
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.
April 29, 2019

I would need to see the script to be sure, but I've run into this exact same issue. I believe the problem is that you aren't reindexing the issue after updating it. Add this to the end of your script to commit changes.

 

issue.store()
Ben Poulson
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.
April 30, 2019

@achraf pato

@Vasiliy Zverev 

The above answer is conceptually right, but the code snippet is wrong since I assumed it was a groovy script rather than an SIL script. For SIL, the syntax is

admReindexIssue(%key%)

Documentation here.

Like Achraf Mechta likes this
0 votes
Vasiliy Zverev
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.
April 29, 2019

Could you provide your script?

achraf pato April 29, 2019
%key%.totalretrait = %key%.totalretrait + %key%.argent;

%key%.MI = %key%.MI - %key%.argent;

this is my script. It updates 2 fields 

Vasiliy Zverev
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.
April 29, 2019

See @Ben Poulson answer.

Achraf Mechta
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 30, 2019

Thank you ser

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events