How can I get history of an issue?

Hello!

In the oldest version of Rest API you have Get Issue History.

How can I get the problem history in the new version?

0
5 comments
Official comment

Hello, thank you for your question.

With the new REST API, you can get a list of activity items of an issue: https://www.jetbrains.com/help/youtrack/standalone/resource-api-issues-issueID-activities.html

Let us know if you have any further questions, we'll be happy to help.

Hello, I would like to get the history of the task comments. The old API had such an opportunity.

https://www.jetbrains.com/help/youtrack/standalone/Get-Historical-Changes-of-an-Issue.html

Is there an analogue in the new API? Which category should I use to track comment change history?

https://www.jetbrains.com/help/youtrack/standalone/resource-api-issues-issueID-activities.html#get_all-ActivityItem-method

0

Request:

/api/issues/{issueId}/activities?fields=id,author(name,login),target(text)&categories=CommentTextCategory,CommentsCategory

Result of target(text) returns always current record

0

Old REST API issue comments history:

GET /rest/{issueId}/history

New REST API issue comments history analog:

GET /api/issues/{issueId}/activities?fields=id,added,removed,author(name,login),target(text)&categories=CommentTextCategory

Using CommentTextCategory with fields added/removed returns action changes with old values in this fields and new value in target->text

0

Hello Lekraft1990, thank you very much for your messages.

if you want to get changes in the comment text, that's correct, you need the CommentTextCategory.

In case you need to get other changes, the full list of categories can be found here.

Let us know if anything is still left unclear, we're always happy to help.

0

Please sign in to leave a comment.