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

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

Logging what was updated via python-jira

Hello,

 

currently I am using custom python script to pull data from external sources and update jira ticket with it. This part is working perfectly.

My question is about logging what was really updated. In best case I want push comment to ticket saying something like : "customfield_123" changed from X to Y". 

For update I am using dict with values so making such comment should be easy, but...

let say I want to update:

a = 10
b = 20
c = 15

but c is already set to 15 in jira ticket, therefore this value is not updated (field already have same value). So update changelog should says that A and B was changed only (not C): "A was changed from None to 10, B was changed from 10 to 20".

What would be proper way to do such logging ? Does python-jira already has something like that ? 

 

Thanks in advance

1 answer

0 votes

The changelog will only save what was modified. So in your case if you really need to save this information you can add it to the comment. But why you need to track if a field was changed or not.

Suggest an answer

Log in or Sign up to answer
TAGS

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