if issue.fields.duedate is not None:
changelog = issue.changelog
for history in changelog.histories:
for item in history.items:
if item.field == 'duedate':
print('Date:' + history.created)
example: when issue was created, duedate is '12-09-2019' but someone or the other changed to '18-09-2019'
how to know whether duedate has changed from original duedate or not??
Hi @lavanya
I do not python but below code might help you.
changeHistoryManager = ComponentAccessor.getChangeHistoryManager()
duedateChanges = changeHistoryManager.getChangeItemsForField(issue, "duedate")
You can get dueDate field changes and check whether there is at least one change.
I hope I was helpful
Tuncay Senturk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.