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?
Please sign in to leave a comment.
Hello!
In the oldest version of Rest API you have Get Issue History.
How can I get the problem history in the new version?
Please sign in to leave a 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
Request:
/api/issues/{issueId}/activities?fields=id,author(name,login),target(text)&categories=CommentTextCategory,CommentsCategory
Result of target(text) returns always current record
Old REST API issue comments history:
New REST API issue comments history analog:
Using CommentTextCategory with fields added/removed returns action changes with old values in this fields and new value in target->text
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.