Versions Compared

Key

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

...


...

com.easesolutions.jira.plugins.requirements/1.0/projects/enable/prjKey

...

com.easesolutions.jira.plugins.requirements/1.0/projects/disable/prjKey

...



Anchor
1
1

Panel
titleColor#FFFFFF
titleBGColor#6c809a
titlecom.easesolutions.jira.plugins.requirements/1.0/projects

Get all projects enabled in Requirements.

Expand
titleClick here for details...
REQUEST
Panel
bgColor#f6f5f5
POST

/rest/com.easesolutions.jira.plugins.requirements/1.0/projects



RESPONSES

Status
colourGreen
titleSTATUS 200
- Returned if the project is successfully enabled

Code Block
languagejava
titleExample response
[
  {
    "prjID": 10000,
    "prjKey": "TP",
    "prjName": "Test Project"
  }
]

Status
colourRed
titleSTATUS 400
- Returned if an error occurs while retrieving all enabled projects in Requirements

Status
colourRed
titleSTATUS 401
- Returned if invalid user credentials, or the user has no permission

Status
colourRed
titleSTATUS 403
- Returned if the license is invalid or has expired, or incompatible JIRA version



Anchor
2
2

Get all projects enabled
Panel
titleColor#FFFFFF
titleBGColor#6c809a
titlecom.easesolutions.jira.plugins.requirements/1.0/projects
/enable/prjKey

Enable a project in Requirements.

Expand
titleClick here for details...
REQUEST
Panel
bgColor#f6f5f5
POST

/rest/com.easesolutions.jira.plugins.requirements/1.0/projects/1.0/projects/enable/prjKey



PARAMETERS
parametertypedescription
prjKey*stringThe project key of the project to be enabled.



RESPONSES

Status
colourGreen
titleSTATUS 200
- Returned if the project is successfully enabled

Code Block
languagejava
titleExample response
[
  { 
   	"prjIDprjKey": 10000"SC", 
   	"prjKeyprjName": "TPSand Castle", 
	"issueCount": 34, 
	"prjNamesuccess": "Test Project"
 true 
}
]

Status
colourRed
titleSTATUS 400
- Returned if the project is invalid or an error occurs while retrieving all enabled projects in Requirementsactivating the project

Status
colourRed
titleSTATUS 401
- Returned if invalid user credentials, or the user has no permission

Status
colourRed
titleSTATUS 403
- Returned if the license is invalid or has expired, or incompatible JIRA version



Anchor
232
3

Panel
titleColor#FFFFFF
titleBGColor#6c809a
titlecom.easesolutions.jira.plugins.requirements/1.0/projects/enabledisable/prjKey

Enable Disable a project in Requirements.

Expand
titleClick here for details...
REQUEST
Panel
bgColor#f6f5f5
POST

/rest/com.easesolutions.jira.plugins.requirements/1.0/projects/enabledisable/prjKey



PARAMETERS
parametertypedescription
prjKey*stringThe project key of the project to be enableddisabled.



RESPONSES

Status
colourGreen
titleSTATUS 200
- Returned if the project is

successfully enabled

sucessfully disabled

Code Block
languagejava
titleExample responseResponse
{
 	 "prjKey": "SC",
  	"prjName": "Sand Castle",
 	 "issueCount": 34,
 	 "success": true
}
}

Status
colourRed
titleSTATUS 400
- Returned if the project is invalid or an error occurs while activating disabling the project

Status
colourRed
titleSTATUS 401
- Returned if invalid user credentials, or the user has no permission

Status
colourRed
titleSTATUS 403
- Returned if the license is invalid or has expired, or incompatible JIRA version



Anchor
343
4

RESPONSES
- Returned if the project is sucessfully disabled
Panel
titleColor#FFFFFF
titleBGColor#6c809a
titlecom.easesolutions.jira.plugins.requirements/1.0/projectssetsuspect/disable/prjKeyprojectId
Disable

Set a

project in Requirements

suspect.

- Returned if the project is invalid or an error occurs while disabling the project
Expand
titleClick here for details...

REQUEST

Status
colourRed
titleSTATUS 400
Status
colourRed
titleSTATUS 401
- Returned if invalid user credentials, or the user has no permission
Panel
bgColor#f6f5f5
POST

PUT

/rest/

com.easesolutions.jira

.plugins.requirements/1.0/projects/disable/prjKey
PARAMETERS
parametertypedescription
prjKey*stringThe project key of the project to be disabled.
Status
colourGreen
titleSTATUS 200
Code Block
languagejava
titleExample Response
{
  "prjKey": "SC",
  "prjName": "Sand Castle",
  "issueCount": 34,
  "success": true
}

.plugins.requirements/1.0/setsuspect/projectId


Sample request data JSON:

{

"issueSourceKey": "TEST-1",

"issueDestinationKey" "TEST-2",

"direction": "in",

"linkTypeId": 10000,

"suspect": true

}


issueSourceKey (string): The source's issue key

issueDestinationKey (string): The destination's issue key

direction (string): in/out/in-out

linkTypeId (long): -1(All), 10000(Blocks), 10001(Clones), 10002(Duplicate) and/or 10003(Relates)

suspect (boolean): is a suspect




PARAMETERS

parametertypedescription
projectId*longThe project's ID to be used
dataobjectThe JSON object of suspect data. Please refer above for the example and properties definition.



RESPONSE

Expand
titleClick to view response types...


ResponseDetails

Status
colourGreen
titleSTATUS 200

Returned on successful operation.

Status
colourRed
titleSTATUS

403

400

- Returned if the license is invalid or has expired, or incompatible JIRA version

Returned when project is null.

Project is invalid or hasn't been assigned to the Requirements for JIRA plugin

Returned when either suspect data's srcKey and destKey are null.
Returned on failed operation.




Anchor
5
5

Panel
titleColor#FFFFFF
titleBGColor#6c809a
titlecom.easesolutions.jira.plugins.requirements/1.0/prjKey/suspectconfiguration

Trigger saving a suspect configuration.

Expand
titleClick here for details...
REQUEST
Panel
bgColor#f6f5f5
POST
/rest/com.easesolutions.jira.plugins.requirements/1.0/prjKey/suspectconfiguration

Sample request data JSON:
{
"configName": "testName",
"notifyAssignee": false,
"notifyReporter": false,
"notifyProjectLead": false,
"userKeys": ["admin", "user1"],
"linkTypeIds":["10002", "10003"],
"useAllLinktypes":false,
"suspectConfigItems":[
{
"field": "assignee",
"stream":"up"
},
{
"field": "customfield_10003",
"stream": "up"
}
],
"scope":"up"
}

configName (string): The suspect configuration name
notifyAssignee (boolean): True to notify assignee, otherwise false
notifyReporter (boolean): True to notify reporter, otherwise false
notifyProjectLead (boolean): True to notify project lead, otherwise false
userKeys (string array): The list of user ids to be notified
linkTypeIds (string array): The list of link type ids. Possible values are: -1(All), 10000(Blocks), 10001(Clones), 10002(Duplicate) and/or 10003(Relates)
useAllLinktypes (boolean): True if use all link types, otherwise false
suspectConfigItems (object array): The list of fields that trigger a suspect
field (string): The field id
stream (string): The scope of the configuration. It must have the same value with "scope"
scope (string): The scope of the configuration. Possible values are: "up", "down" or "both"



PARAMETERS
parametertypedescription
prjKey*stringThe project key to be configured.
dataobject
The JSON object of suspect configuration data. Please refer above for the example and properties definition.



RESPONSES

Status
colourGreen
titleSTATUS 200
- Returned if suspect configuration is successfully saved.

Code Block
languagejava
titleExample Response
Suspect Configuration saved for SC

Status
colourRed
titleSTATUS 400
- Returned if the project is invalid, scope is invalid, link type id is invalid, list of users is invalid or contains an invalid user key, or list of fields is invalid or contains an invalid field

Status
colourRed
titleSTATUS 401
- Returned if invalid user credentials, or the user has no permission to use the Requirements for JIRA plugin

Status
colourRed
titleSTATUS 403
- Returned if the license is invalid or has expired, incompatible JIRA version, the project is not configured for Requirements for JIRA, or no permission to create suspect configuration

Status
colourRed
titleSTATUS 404
- Returned if the project is not found

Status
colourRed
titleSTATUS 500
- Returned if an error occurs while creating suspect configuration


...

Panel
titleColor#FFFFFF
titleBGColor#6c809a
titlecom.easesolutions.jira.plugins.requirements/1.0/prjKey/suspectconfigurations

Returns all suspect configuration in project.

Expand
REQUEST
Panel
GET
/rest/com.easesolutions.jira.plugins.requirements/1.0/prjKey/suspectconfigurations



PARAMETERS
parametertypedescription
prjKey*stringThe project key to be configured.



RESPONSES

Status
colourGreen
titleSTATUS 200
- Returned if suspect configuration is successfully deleted.

Code Block
languagejava
titleExample Response
[
  {
    "configId": 1,
    "configName": "name 1",
    "projectId": 10001,
    "notifyAssignee": true,
    "notifyReporter": true,
    "notifyProjectLead": true,
    "userKeys": [],
    "linkTypeIds": [],
    "useAllLinktypes": true,
    "suspectConfigItems": [
      {
        "stream": "both",
        "field": "  <all fields>"
      }
    ],
    "scope": "both"
  }
]

Status
colourRed
titleSTATUS 400
- Returned if the project is invalid.

Status
colourRed
titleSTATUS 401
- Returned if invalid user credentials, or the user has no permission to use the Requirements for JIRA plugin

Status
colourRed
titleSTATUS 403
- Returned if the license is invalid or has expired, incompatible JIRA version, the project is not configured for Requirements for JIRA, or no permission to create suspect configuration

Status
colourRed
titleSTATUS 404
- Returned if the project is not found

Status
colourRed
titleSTATUS 500
- Returned if an error occurs while retrieving all suspect configuration


...

Panel
titleColor#FFFFFF
titleBGColor#6c809a
titlecom.easesolutions.jira.plugins.requirements/1.0/prjKey/suspectconfiguration/id

Trigger editing a suspect configuration.

Expand
REQUEST
Panel
PUT
/rest/com.easesolutions.jira.plugins.requirements/1.0/prjKey/suspectconfiguration/id

Sample request data JSON:
{
"configName": "testName",
"notifyAssignee": false,
"notifyReporter": false,
"notifyProjectLead": false,
"userKeys": ["admin", "user1"],
"linkTypeIds":["10002", "10003"],
"useAllLinktypes":false,
"suspectConfigItems":[
{
"field": "assignee",
"stream":"up"
},
{
"field": "customfield_10003",
"stream": "up"
}
],
"scope":"up"
}

configName (string): The suspect configuration name
notifyAssignee (boolean): True to notify assignee, otherwise false
notifyReporter (boolean): True to notify reporter, otherwise false
notifyProjectLead (boolean): True to notify project lead, otherwise false
userKeys (string array): The list of user ids to be notified
linkTypeIds (string array): The list of link type ids. Possible values are: -1(All), 10000(Blocks), 10001(Clones), 10002(Duplicate) and/or 10003(Relates)
useAllLinktypes (boolean): True if use all link types, otherwise false
suspectConfigItems (object array): The list of fields that trigger a suspect
field (string): The field id
stream (string): The scope of the configuration. It must have the same value with "scope"
scope (string): The scope of the configuration. Possible values are: "up", "down" or "both"



PARAMETERS
parametertypedescription
prjKey*stringThe project key to be configured.
id*stringThe suspect configuration id.
dataobjectThe JSON object of suspect configuration data. Please refer above for the example and properties definition.



RESPONSES

Status
colourGreen
titleSTATUS 200
- Returned if suspect configuration is successfully udpated.

Code Block
languagejava
titleExample Response
Suspect Configuration saved for SC

Status
colourRed
titleSTATUS 400
- Returned if the project is invalid, scope is invalid, link type id is invalid, list of users is invalid or contains an invalid user key, or list of fields is invalid or contains an invalid field

Status
colourRed
titleSTATUS 401
- Returned if invalid user credentials, or the user has no permission to use the Requirements for JIRA plugin

Status
colourRed
titleSTATUS 403
- Returned if the license is invalid or has expired, incompatible JIRA version, the project is not configured for Requirements for JIRA, or no permission to create suspect configuration

Status
colourRed
titleSTATUS 404
- Returned if the project is not found

Status
colourRed
titleSTATUS 500
- Returned if an error occurs while editing configuration


...

Panel
titleColor#FFFFFF
titleBGColor#6c809a
titlecom.easesolutions.jira.plugins.requirements/1.0/prjKey/suspectconfiguration/id

Trigger delete a suspect configuration.

Expand
REQUEST
Panel
DELETE
/rest/com.easesolutions.jira.plugins.requirements/1.0/prjKey/suspectconfiguration/id



PARAMETERS
parametertypedescription
prjKey*stringThe project key to be configured.
id*stringThe suspect configuration id.



RESPONSES

Status
colourGreen
titleSTATUS 200
- Returned if suspect configuration is successfully deleted.

Code Block
languagejava
titleExample Response
Suspect Configuration deleted for SC

Status
colourRed
titleSTATUS 400
- Returned if the project is invalid or id is invalid

Status
colourRed
titleSTATUS 401
- Returned if invalid user credentials, or the user has no permission to use the Requirements for JIRA plugin

Status
colourRed
titleSTATUS 403
- Returned if the license is invalid or has expired, incompatible JIRA version, the project is not configured for Requirements for JIRA, or no permission to create suspect configuration

Status
colourRed
titleSTATUS 404
- Returned if the project is not found

Status
colourRed
titleSTATUS 500
- Returned if an error occurs while deleting suspect configuration


...