How to Delete Active/Inactive sprints in JIRA using SIL

Bhargavi Vasa
Contributor
March 3, 2023

How to delete Active/Inactive sprints in Jira using SIL script.

Tried this routine but it didn't work.Throwing error as "com.attlasian.greenhopper.service.sprint.SpeintManager.deleteSprint"

Routine : deleteSprint(sprintID)

Any solution for this?

 

1 answer

1 vote
Anna Hryhoruk _Appfire_
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.
March 6, 2023

Hey @Bhargavi Vasa ,
I`ve just tested and deleteSprint routine worked fine for me. 

Could you please share your SIL Engine version, script that you use and full error from the Jira log? 

Thanks,
Anna

Bhargavi Vasa
Contributor
March 6, 2023

Version : 5.8.0.13

Script

boolean isDeleted = deleteSprint(9090);

runnerLog("The sprint was deleted: "+isDeleted);

Error message:

Exception while executing SIL program '[inline source]': [SIL Error on line: 11, column: 1] com.atlassian.greenhopper.service.sprint.SprintManager.deleteSprint(Lcom/atlassian/greenhopper/service/sprint/Sprint:)Lcom/atlassian/greenhopper/service/ServiceOutcome;

Anna Hryhoruk _Appfire_
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.
March 10, 2023

Hi @Bhargavi Vasa ,

Looks like that issues is specifically with the 5.8.0.X versions. I saw the same as you, but starting Power Scripts 6.0.820.0 and SIL Engine 6.0.820.0 it works just fine.

hope it helps!
Anna

Like abc def likes this

Suggest an answer

Log in or Sign up to answer