Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

Expand
titleGET 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

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

Responses

Status
colourGreen
titlestatus 200
application/json Returned if successful.

Example

Code Block
{ 
   "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
colourRed
titlestatus 400
Returned if there is an error while processing request.

Status
colourRed
titlestatus 401
Returned if user is not logged in.

Status
colourRed
titlestatus 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 of a given project

Expand
titlePOST com.easesolutions.jira.plugins.requirements/1.0/child-req/{prjKey}/{parentKey}
Info

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

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

Responses

Status
colourGreen
titlestatus 200
application/json Returned if successful.

Example

Code Block
languagejson
{ 
   "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
colourRed
titlestatus 400
Returned if there is an error while processing request.

Status
colourRed
titlestatus 401
Returned if user is not logged in.

Status
colourRed
titlestatus 403
Returned if the license is invalid or has expired or incompatible JIRA version.

...

Expand
titleDELETE com.easesolutions.jira.plugins.requirements/1.0/child-req/{prjKey}/{parentKey}
Info

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

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

Responses

Status
colourGreen
titlestatus 200
Returned if successful.

Status
colourRed
titlestatus 400
Returned if there is an error while processing request.

Status
colourRed
titlestatus 401
Returned if user is not logged in.

Status
colourRed
titlestatus 403
Returned if the license is invalid or has expired or incompatible JIRA version.

...