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

Support for creating remote (web) links #15

Open
Programie opened this issue Jun 2, 2017 · 4 comments
Open

Support for creating remote (web) links #15

Programie opened this issue Jun 2, 2017 · 4 comments
Assignees

Comments

@Programie
Copy link

Programie commented Jun 2, 2017

As far as I can see it is not possible to create remote links with this API client, right?

The following JSON posted to "/rest/api/latest/issue/${ISSUE}/remotelink" would create a remote link (Web Link):

{
    "object": {
        "url": "https://github.com/oRastor/jira-client",
        "title" : "Title of the link"
    }
}

See https://community.atlassian.com/t5/Answers-Developer-Questions/Create-hyperlink-in-Jira-issue-via-REST-API/qaq-p/552251#M89911

@oRastor
Copy link
Owner

oRastor commented Jun 2, 2017

Currently this feature is not supported

@Programie
Copy link
Author

Programie commented Jun 2, 2017

You mean, it is not supported by the current JIRA API?

The JIRA API documentation says, that it is supported in JIRA 5.0 or later: https://developer.atlassian.com/jiradev/jira-platform/guides/other/guide-jira-remote-issue-links/jira-rest-api-for-remote-issue-links

@oRastor
Copy link
Owner

oRastor commented Jun 2, 2017

I mean, that this library do not support such resources as remote link. Not all requests and not all resources implemented for now.

Requests that not implemented in library can be processed with JiraClient\JiraClient like this:

$response = $client->callPost("/rest/api/latest/issue/{$issueId}/remotelink", [
    'object' => [
        "url" => "https://github.com/oRastor/jira-client",
        "title" => "Title of the link"
    ]
]);

Maybe later I will make this feature.

@Programie
Copy link
Author

OK, that will already help me. Thanks anyway. 🙂

@oRastor oRastor self-assigned this Jun 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants