Hi all,
When you change a field value through the code, Jira ticket gets the updated value but "Updated" date would not be updated! Even in ticket history, there is no log that the field has been set.
Has anybody seen this problem?
I tried to update the a field in the code through following code:
def issue = issueManager.getIssueObject("TP-16356")
def updated = "TEST VALUE"
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def textCf2 = customFieldManager.getCustomFieldObjects(issue).find {it.name == "Plan"}
if (textCf2) {
def changeHolder = new DefaultIssueChangeHolder()
textCf2.updateValue(null, issue, new ModifiedValue(issue.getCustomFieldValue(textCf2), updated),changeHolder)
}
The code works, but updateValue does not update the "Update" date field. I tried with updateIssue, it does not update the system field "Updated" either.
Is there any way to force updateIssue to update Updated field?
Thanks for your help in advance.
JIRA Version: 7.5.3