Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

how can we know whether duedate is changed or not for the ticket or issue ?? in python.

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??

1 answer

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

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Software

How to create Jira issus from Excel file?

When to use CSV importer When managing your processes in Jira, there are many occasions where you need to create a lot of tasks. Creating them one by one will cost you a lot of time and effort and i...

4,582 views 22 33
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you