Forums

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

Unable to find exact API for fetching Jira issue activity data for custom fields

Adriano Bittar July 21, 2023

Hi, 

 

I am trying to retrieve the the field Test Details History without any success.

I was able to get the log using expand = 'changelog', however the it does not shows this exactly field.image.png

 

2 answers

1 accepted

1 vote
Answer accepted
Hieu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 23, 2023

Hi @Adriano Bittar

Jira server java or groovy code, you can try this:

 

ComponentAccessor.getChangeHistoryManager().getAllChangeItems(issue)

ChangeHistoryManager 
ChangeHistoryItem

After you get all the items, based on your requirement do some filtering to your the needed items

Adriano Bittar July 24, 2023 edited

@Hieu , 

 

Actually I am using python.

I will try to see if I can find similar functions to that.

In the meantime, if you have a ideia on how to retrieve this data on python, let me know.

Thank you a lot.

Hieu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 24, 2023

Hi @Adriano Bittar 
I'm not familar with python, and dont know if you already try this:
https://atlassian-python-api.readthedocs.io/jira.html#manage-issues

function: 

# Get change history for an issue
jira
.get_issue_changelog(issue_key)
Adriano Bittar July 24, 2023

Hi, 

Actually that is what I am doing just slightly different, but with the same results.

issue = jira.issue(issue_key, expand ='changelog') 

 

However, it just return the issues modifications on the main fields, but not in the Activity--> Test Details History.

 

Thank you anyway.

0 votes
Mohamed Benziane
Community Champion
July 22, 2023

Hi,

welcome to the community

it seems that this tab come from a plugin can you tel us which one ? Did you try to look at the plugin documentation and its API ?

Mohamed Benziane
Community Champion
July 24, 2023

I meant the tab in your screenshot must come from a plugin, it isn't ship with Jira.

So ask your admin from which plugin this tab come from and look at the documentation API of this plugin.

Suggest an answer

Log in or Sign up to answer