You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that --activity-history is not the same as --history. Jira's activity history shows details of all changes to an issue's Description (before and after changes). This is helpful for understanding how an issue developed over time.
So to dump everything related to an issue, one might type:
The best way to retrieve change history entries is:
Copy
changeHistoryManager.getChangeHistoriesForUser(getIssue(), authenticationContext.getUser());
You can declare dependency on JiraAuthenticationContext and ChangeHistoryManager in the constructor of your app using Atlassian Spring Scanner.
The getChangeHistoriesForUser method returns list of ChangeHistory objects on which you can call the getChangeItems() method. This returns a List of GenericValue objects, each one representing an issue field update.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Currently, only comments can be viewed for issues. I see the following possible activities online:
I would like to be able to specify all activity. The following flags would be helpful:
--activity-history
,--activity-log
,--activity-time
,--activity-risk
,--activity-checklist
,--activity-all
.Note that
--activity-history
is not the same as--history
. Jira's activity history shows details of all changes to an issue'sDescription
(before and after changes). This is helpful for understanding how an issue developed over time.So to dump everything related to an issue, one might type:
Implementation
The Jira API docs say:
Beta Was this translation helpful? Give feedback.
All reactions