JiraPS
JiraPS copied to clipboard
Add support for issue links
Extend support for issues by adding methods for issue links:
api/2/issueLink
- [x]
New-JiraIssueLink
-
-Type
Jira.IssueLinkType? -
-InwardIssue
Jira.Issue -
-OutwardIssue
Jira.Issue -
-Comment
- body
- visibility
- POST /rest/api/2/issueLink
-
- [x]
Get-JiraIssueLink
-
-Issue
Jira.Issue- Get all issue Links from the issue (property of GET /rest/api/2/issue/{issueIdOrKey})
-
-Link
int/Jira.IssueLink
-
- [x]
Remove-JiraIssueLink
-
-Link
int/Jira.IssueLink
-
api/2/issueLinkType
- [x]
Get-JiraIssueLinkType
- no parameter: GET /rest/api/2/issueLinkType
-
-Link
int/Jira.IssueLink: GET /rest/api/2/issueLinkType/{issueLinkTypeId}
- [ ]
New-JiraIssueLinkType
POST /rest/api/2/issueLinkType-
-Name
string -
-Inward
string -
-Outward
string
-
- [ ]
Remove-JiraIssueLinkType
DELETE /rest/api/2/issueLinkType/{issueLinkTypeId}-
-LinkType
int/Jira.IssueLinkType
-
- [ ]
Set-JiraIssueLinkType
orUpdate-JiraIssueLinkType
PUT /rest/api/2/issueLinkType/{issueLinkTypeId}-
-LinkType
Jira.IssueLinkType mandatory -
-Name
string optional -
-Inward
string optional -
-Outward
string optional
-
Out of all optional parameters, at least one must be provided. This shall be controlled with
ParameterSetName
-
This issue is NOT about Remote Issue Links - although that would be a cool thing to have access to through PowerShell, that looks like it will be more time intensive to implement, so I'm not ready to tackle that just yet. Remote Issue Links were implemented with #80
Probably going to need a new function, Get-JiraIssueLinkType, to make the link types more discoverable (similar to issue transitions).
The API also seems to support updating link types, but that's not as big of a concern at the moment - I'm guessing most people would rather perform those types of changes from the GUI.
75ba2d6 adds the Get-JiraIssueLinkType function.
I have updated the branch (merged with master
).
What is missing in order to create a PR?
Original post updated to reflect the implementations status.
Implementation is in branch feature-issue-links