Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JIRA changelog support #496

Open
hkelley opened this issue Jan 2, 2024 · 0 comments
Open

Add JIRA changelog support #496

hkelley opened this issue Jan 2, 2024 · 0 comments

Comments

@hkelley
Copy link

hkelley commented Jan 2, 2024

Context

It would be helpful to retrieve JIRA history via cmdlet

Description

Suggest Get-JIRAIssueChangelog as a wrapper for the https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-changelog-get

Additional Information

Currently working around this with

    $uri = "{0}/rest/api/latest/issue/{1}/changelog" -f (Get-JiraConfigServer),$issue.ID

    if(( $changes = Invoke-JiraMethod -URI $uri ) -and `
       ( $statuschange = $changes.values | Sort-Object created | ?{$_.items.fieldId -eq "status"}  |  Select-Object -First 1  ) ) {
.....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant