What I want to do - Based on any issue key, select that issue and update the description field with a string.
What happens - In my original script, I print the issue key and string variable to the log before the setDescription(), the log looks fine but the description of the ticket is not updated.
As only this part was not working in my script, I made the below simplified attempts to figure out how to resolve the problem but even don't get this working. I am probably not pointing to the right issue but I have no clue why the below is not working (I am quite novice)
IssueService issueService = ComponentAccessor.getIssueService();
IssueService.IssueResult issueResult = issueService.getIssue(user,"JP-2")
MutableIssue testIssue = issueResult.getIssue();
testIssue.setDescription("Test")
OR
MutableIssue testIssue = issueManager.getIssueByKeyIgnoreCase("JP-2")
testIssue.setDescription("Test")
Hi @Shamanth
If not mistaken, when you update an app, Jira will uninstall it first and then install the newer version. If this is the case, then you will not lose any data.
I would advise you to create a copy of your instance and install there the previous version of scriptrunner and see if the problem is resolved. I do not suggest working/doing changes on a live production environment.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.