DATA CENTER AND SERVER | CLOUD

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

Gets all child requirements for a given issue in a specific project

 GET com.easesolutions.jira.plugins.requirements/1.0/child-req/{prjKey}/{parentKey}

Request

PATH PARAMETERS

parameter

type

description

prjKey

string

project key

parentKey

string

issuekey of parent issue

Sample Request Path

https://myjirainstance.com/rest/com.easesolutions.jira.plugins.requirements/1.0/child-req/ABCD/ABCD-100

Responses

STATUS 200 application/json Returned if successful.

Example

{ 
   "childReq":[ 
      { 
         "issueId":10154,
         "key":"AN-1",
         "url":"http://<server-name>/jira/browse/AN-1",
         "summary":"First",
         "icon_url":"http://<server-name>/images/icons/issuetypes/newfeature.png",
         "issueType":"New Feature",
         "position":1
      }
   ]
}

STATUS 400 Returned if there is an error while processing request.

STATUS 401 Returned if user is not logged in.

STATUS 403 Returned if the license is invalid or has expired or incompatible JIRA version.

Adds a child requirement to an issue in the project tree a given project

 POST com.easesolutions.jira.plugins.requirements/1.0/child-req/{prjKey}/{parentKey}

Note that the child requirement can't be already part of the project. 

Request

PATH PARAMETERS

parameter

type

description

prjKey

string

project key

parentKey

string

issuekey of parent issue

QUERY PARAMETERS

parameter

type

description

childKey

string

issuekey of child issue to be added to the parentKey

Sample Request Path

https://myjirainstance.com/rest/com.easesolutions.jira.plugins.requirements/1.0/child-req/ABCD/ABCD-100?childKey=ABCD-250

Responses

STATUS 200 application/json Returned if successful.

Example

{ 
   "id":8
   "issueId":10154,
   "key":"AN-1",
   "url":"http://<server-name>/jira/browse/AN-1",
   "summary":"First",
   "icon_url":"http://<server-name>/images/icons/issuetypes/newfeature.png",
   "issueType":"New Feature",
   "position":1
}

STATUS 400 Returned if there is an error while processing request.

STATUS 401 Returned if user is not logged in.

STATUS 403 Returned if the license is invalid or has expired or incompatible JIRA version.

Removes a child requirement from an issue in the project tree of a given project

 DELETE com.easesolutions.jira.plugins.requirements/1.0/child-req/{prjKey}/{parentKey}

Note that the child requirement will only be removed from the tree and not deleted from Jira.

Request

PATH PARAMETERS

parameter

type

description

prjKey

string

project key

parentKey

string

issuekey of parent issue

QUERY PARAMETERS

parameter

type

description

childKey

string

issuekey of child issue to be removed

Sample Request Path

https://myjirainstance.com/rest/com.easesolutions.jira.plugins.requirements/1.0/child-req/ABCD/ABCD-100?childKey=ABCD-250

Responses

STATUS 200 Returned if successful.

STATUS 400 Returned if there is an error while processing request.

STATUS 401 Returned if user is not logged in.

STATUS 403 Returned if the license is invalid or has expired or incompatible JIRA version.

  • No labels