Forums

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

Can I get CustomFields through API for worklog?

Smita Jain January 23, 2022

Hello Support,

 

I want to call JIRA API to fetch all worklogs for a month and I have some specific information stored in one of the CustomFields. Is it possible to fetch CustomField information in API?

Your early response is appreciated.

1 answer

1 vote
Vishwas
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.
January 23, 2022

Hi @Smita Jain 

Welcome to Atlassian Community !!

Yes you can fetch those details.

For worklog here is the API https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-worklogs/#api-group-issue-worklogs

And for custom field of issue we have to do GET API for issues :

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-get

Regards,
Vishwas 

Smita Jain January 25, 2022

Thank you Vishwas.

Does that mean I need to call two separate APIs? I remember in server based JIRA, we had API to get timesheet report as well. Is there anything similar available in cloud JIRA?

Vishwas
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.
January 25, 2022

Hey @Smita Jain 

For worklog one API is enough, first one.

since you had asked custom field also rite hence the second API.

Regards,

Vishwas

Smita Jain January 25, 2022

Thank you Vishwas for your prompt reply.

Like Vishwas likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events