Hi, I'm currently trying to retrieve issue data with the rest api. To get worklogs and comments i'm using the arrays I get from the query "rest/api/latest/issue/issueIdOrKey".
But while in the worklog field there is a maxresult field, there is none on comments. Does this means that all comments get returned, no matter the amount there is, or is there a maxresult that isn't returned by the query?
Hello Nathan,
Thank you for raising this question.
You're correct. The Rest API call you mentioned will automatically set the MaxResults parameter with the total number of comments.
If you need pagination on comments, you can use:
- rest/api/2/issue/{issueIdOrKey}/comment.
Please, let me know if this information helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are welcome, Nathan.
Have a nice weekend.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am now trying to retrieve attachment data, and I have the exact same question: does the array "attachment " in the query "rest/api/latest/issue/issueIdOrKey" contain all the attachments, or is there a hidden maxResult?
Edit: the same question for changelog (there is a maxresult but it seems that it is set to the total number of changes, is there a cap of some sort or can I proceed without worrying about it?)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.