We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
According to https://docs.gitlab.com/ee/api/issue_links.html
Endpoint:
POST /projects/:id/issues/:issue_iid/links
Supports a link_type query parameter:
link_type
Type: string Required: no Description: The type of the relation (“relates_to”, “blocks”, “is_blocked_by”), defaults to “relates_to”).
So this would needs to be reflected here:
gitlab4j-api/src/main/java/org/gitlab4j/api/IssuesApi.java
Lines 847 to 871 in 075ce39
Maybe as enum?
And it needs to be present in IssueLink class (link_type attribute), when the response is parsed:
IssueLink
[ { "id" : 84, "iid" : 14, "issue_link_id": 1, "project_id" : 4, "created_at" : "2016-01-07T12:44:33.959Z", "title" : "Issues with auth", "state" : "opened", "assignees" : [], "assignee" : null, "labels" : [ "bug" ], "author" : { "name" : "Alexandra Bashirian", "avatar_url" : null, "state" : "active", "web_url" : "https://gitlab.example.com/eileen.lowe", "id" : 18, "username" : "eileen.lowe" }, "description" : null, "updated_at" : "2016-01-07T12:44:33.959Z", "milestone" : null, "user_notes_count": 0, "due_date": null, "web_url": "http://example.com/example/example/issues/14", "confidential": false, "weight": null, "link_type": "relates_to", "link_created_at": "2016-01-07T12:44:33.959Z", "link_updated_at": "2016-01-07T12:44:33.959Z" } ]
Also the method reading the issue links GET /projects/:id/issues/:issue_iid/links should be reworked:
GET /projects/:id/issues/:issue_iid/links
getIssueLinks(Object projectIdOrPath, Long issueIid)
getIssueLinks(Object projectIdOrPath, Long issueIid, int itemsPerPage)
getIssueLinksStream(Object projectIdOrPath, Long issueIid)
But there I am not sure to understand why the return type is not from type IssueLink…
The text was updated successfully, but these errors were encountered:
Add support for link type between issues
4041ae7
Fixes gitlab4j#847
Add support for link type between issues (#964)
999b6fb
* Add support for link type between issues Fixes #847 * Create AbstractIssue
Successfully merging a pull request may close this issue.
According to https://docs.gitlab.com/ee/api/issue_links.html
Endpoint:
Supports a
link_type
query parameter:So this would needs to be reflected here:
gitlab4j-api/src/main/java/org/gitlab4j/api/IssuesApi.java
Lines 847 to 871 in 075ce39
Maybe as enum?
And it needs to be present in
IssueLink
class (link_type
attribute), when the response is parsed:Also the method reading the issue links
GET /projects/:id/issues/:issue_iid/links
should be reworked:getIssueLinks(Object projectIdOrPath, Long issueIid)
getIssueLinks(Object projectIdOrPath, Long issueIid, int itemsPerPage)
getIssueLinksStream(Object projectIdOrPath, Long issueIid)
But there I am not sure to understand why the return type is not from type
IssueLink
…The text was updated successfully, but these errors were encountered: