Forums

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

SIL how i can get history due date in issue and collect result in JQL search

Denis Shestov
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 28, 2018

Hi! 

Case: get how many change due date in issues project.

I think, first time i must create sil script. 

But i can't get history for field DueDate. 

i tried this options: 

JFieldChange latestChange //1st var.

fieldHistory //2st var.

but result return = EMPTY

if i try lastChange - I get the actual value of the last change. where the name of the field is displayed duedate 

Running script JQLDone. Program returned: odmin|2018-06-28 10:36:53|duedate|2018-06-13|2018-06-15

 

Help pls

1 answer

1 accepted

0 votes
Answer accepted
Denis Shestov
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 28, 2018

The colleague helped: 
the documentation indicates the use  of JFieldChanges []https://confluence.cprime.io/display/SIL/getFieldChanges 

but actually: 

string k="TEST-5";
string[] field_history;
field_history = getFieldChanges(k, "duedate");
runnerLog(field_history);

Suggest an answer

Log in or Sign up to answer