Create Link in issue of document with API REST

Issue #83 resolved
Focusgeo Team created an issue

Develop a API REST for to link a document to specific issue

Now, is possible create documents(file, url, folders) but it is not possible create link for a issue of jira using API REST.

Comments (3)

  1. Danut M [StonikByte] repo owner

    Hi.

    This is possible through the JIRA API. You have to provide specific information through request's body as in the example below.

    See also https://developer.atlassian.com/server/jira/platform/jira-rest-api-for-remote-issue-links/

    Example:

    In this example we link a document with Key (ID) = 519 to JIRA issue TST-14.

    POST https://MYDOMAIN.com/jira/rest/api/latest/issue/TST-14/remotelink

    JSON Body:

      {
        "globalId": "stonikbyte:document-519",
        "application": {
          "type": "com.stonikbyte.jira.plugins.project-docs-plugin",
          "name": "Documents"
        },
        "relationship": "linked documents",
        "object": {
          "url": "https://MYDOMAIN.com/jira/plugins/servlet/StonikByte/Document?id=519",
          "title": "519 - testfile.txt"
          }
      }
    

    DM

  2. Log in to comment