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")