Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Logging what was updated via python-jira

Radek Kříž
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 22, 2019

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
Mohamed Benziane
Community Champion
June 23, 2021

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
AUG Leaders

Atlassian Community Events