Skip to content

Retrieve History of issue transitions #1487

Answered by zlogdanbr
zlogdanbr asked this question in Q&A
Discussion options

You must be logged in to vote

I actually had to directly access the API using python request APIs.

this code will return a list of each transition

ID TIMESTAMP(string) Previous State Current State

`
def rest_get_transitions_from_jira(url_issue, session, _debug):

myjson = rest_get_jason_obj( url_issue, session )
changelog_jason = myjson['changelog']        
history = changelog_jason['histories'] 

if _debug== True:
    rest_debug_jason( changelog_jason)

transitions = []
  
for history_item in history:
    
    the_item_in_history = history_item['items']
    id = history_item['id']
    timestamp = history_item['created']
            
    for _item in the_item_in_history:
        # will not add relevant time complexity …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@maciejkoszykowski
Comment options

Answer selected by zlogdanbr
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants