GETcom.easesolutions.jira.plugins.requirements/1.0/baseline/idGet detailed information for a given baseline.
GETcom.easesolutions.jira.plugins.requirements/1.0/baselinesGet all existing baselines.
GETcom.easesolutions.jira.plugins.requirements/1.0/baselines/project/prjKey

Get all baselines for a given project.

POSTcom.easesolutions.jira.plugins.requirements/1.0/tree/prjKey/baselineCreate a new baseline on the project's root folder.
POSTcom.easesolutions.jira.plugins.requirements/1.0/tree/prjKey/baseline/idCreate a new baseline on a given folder of a project.
POSTcom.easesolutions.jira.plugins.requirements/1.0/baseline/prjKey

Create a baseline using a valid JQL query string.

GET

com.easesolutions.jira.plugins.requirements/1.0/baseline/id/signatures

 Get signatures from a baseline.
DELETEcom.easesolutions.jira.plugins.requirements/1.0/baseline/delete/baselineId Delete a single baseline.


Get detailed information for a given baseline.

The "prjKey" object may not be part of the result if the corresponding project was deleted.
Also the "id" value may not be available for some issues. 


REQUEST
GET

/rest/com.easesolutions.jira.plugins.requirements/1.0/baseline/id



PARAMETERS
parametertypedescription
id*stringthe ID of the baseline



RESPONSES

- Returned if the baseline is found

{
  "id": 1,
  "name": "test",
  "description": "Lorem Ipsum",
  "prjKey": "TEST",
  "created": 1552367261283,
  "userId": "admin",
  "issues": [
    {
      "id": 10000,
      "key": "TEST-1",
      "fields": [
        { "id": "summary", "name": "Summary", "values": ["test"] },
        { "id": "issuetype", "name": "Issue Type", "values": ["Customer Requirement"] },
        { "id": "priority", "name": "Priority", "values": ["Medium"] },
        { "id": "reporter", "name": "Reporter", "values": ["admin"] },
        { "id": "description", "name": "Description", "values": ["ttest"] },
        { "id": "created", "name": "Created", "values": ["2019-03-12 13:04:30"] },
        { "id": "issuekey", "name": "Key", "values": ["TEST-1"] },
        { "id": "path", "name": "Path", "values": ["test/test"] },
        { "id": "project", "name": "Project", "values": ["test"] },
        { "id": "status", "name": "Status", "values": ["Open"] }
      ]
    }
  ],
  "status": "CREATED | CREATING | CREATION_FAILED"
}

- Returned if the baseline is invalid or a general baseline operation failure occurs

- Returned if invalid user credentials, or the user has no permission

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



Get all existing baselines.

REQUEST
GET

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



RESPONSES

- Returned if a baseline is found

[
  	{
    	"id": 17,
    	"name": "Test_BL",
    	"description": "My_Description",
    	"prjKey": "AN",
    	"created": 1444820108730,
    	"userId": "admin",
  		"status": "CREATED"
  	},
  	{
    	"id": 16,
    	"name": "another one",
    	"description": "",
		"created": 1444742408837,
    	"userId": "admin",
  		"status": "CREATING"
  	},
  	{
    	"id": 15,
    	"name": "via rest",
    	"description": "via rest desc",
    	"prjKey": "AN",
    	"created": 1444735257980,
    	"userId": "admin",
  		"status": "CREATION_FAILED"
	},
] 

- Returned if a general baseline operation failure occurs

- Returned if invalid user credentials, or the user has no permission

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



Get all baselines for a given project.

REQUEST
GET

/rest/com.easesolutions.jira.plugins.requirements/1.0/baselines/project/prjKey



PARAMETERS
parametertypedescription
prjKey*stringthe project key



RESPONSES

- Returned if a baseline is found

[
  	{
    	"id": 17,
    	"name": "Test_BL",
    	"description": "My_Description",
    	"prjKey": "AN",
    	"created": 1444820108730,
    	"userId": "admin",
 		 "status": "CREATED | CREATING | CREATION_FAILED"
  	},
  	{
    	"id": 15,
    	"name": "via rest",
    	"description": "via rest desc",
    	"prjKey": "AN",
    	"created": 1444735257980,
    	"userId": "admin",
  		"status": "CREATED | CREATING | CREATION_FAILED"
	},
] 

 - Returned if a general baseline operation failure occurs

- Returned if the project is invalid, invalid user credentials, or the user has no permission

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



Create a new baseline on the projects root folder. 

It is possible to generate an empty baseline with this endpoint.


REQUEST
POST

/rest/com.easesolutions.jira.plugins.requirements/1.0/tree/prjKey/baseline?name&description



PARAMETERS
parametertypedescription
prjKey*stringthe project key
name*stringname of the new baseline
descriptionstringoptional description of the new baseline



RESPONSES

- Returned if a baseline is created

{
  	"id": 17,
  	"name": "Test_BL",
  	"description":
	"My_Description",
  	"prjKey": "AN",
  	"created": 1444820108731,
  	"userId": "admin",
  	"status": "CREATED | CREATING | CREATION_FAILED"
}

- Returned if the project is invalid, the name has invalid length or already exists, the description has invalid length, the baseline has no items, or a general baseline operation failure occurs

- Returned if invalid user credentials, or the user has no permission

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



Create a new baseline on a given folder of a project.

It is possible to generate an empty baseline with this endpoint.


REQUEST
POST

/rest/com.easesolutions.jira.plugins.requirements/1.0/tree/prjKey/baseline/id?name&description



PARAMETERS
parametertypedescription
prjKey*stringthe project key
id*stringthe ID of the folder to create the baseline on
name*stringname of the new baseline
descriptionstringoptional description of the new baseline



RESPONSES

- Returned if a baseline is created

{
  	"id": 17,
  	"name": "Test_BL",
  	"description": "My_Description",
  	"prjKey": "AN",
  	"created": 1444820108731,
  	"userId": "admin",
  	"status": "CREATED | CREATING | CREATION_FAILED"
} 

- Returned if the project is invalid, the folder is invalid, the name has invalid length or already exists, the description has invalid length, the baseline has no items, or a general baseline operation failure occurs

- Returned if invalid user credentials, or the user has no permission

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



Create a baseline using a valid JQL query string.

REQUEST
POST

/rest/com.easesolutions.jira.plugins.requirements/1.0/baseline/prjKey?name&description&jqlQuery



PARAMETERS
parametertypedescription
prjKey*stringthe project key
name*stringname of the baseline to be created
descriptionstringoptional description of the baseline to be created
jqlQuery*stringjqlQuery string for the baseline to be created



RESPONSES

- Returned if a baseline is created

{
  	"id": 1,
  	"name": "Test_Filtered_BL",
  	"description": "My_Description",
  	"prjKey": "AN",
  	"created": 1444820108731,
  	"userId": "admin",
  	"status": "CREATED | CREATING | CREATION_FAILED"
} 

- Returned if the project is invalid, the folder is invalid, the name has invalid length or already exists, the description has invalid length, the baseline has no items, the jql query is invalid or a general baseline operation failure occurs

- Returned if invalid user credentials, or the user has no permission

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



Get signatures from a baseline.

REQUEST
GET

/rest/com.easesolutions.jira.plugins.requirements/1.0/baseline/id/signatures



PARAMETERS
parametertypedescription
id*stringthe ID of the baseline



RESPONSES

- Returned if the baseline id is valid

[
  {
    "id": 1,
    "userKey": "user",
    "userUrl": "https://devdc.easesolutions.com/jira/secure/ViewProfile.jspa?name=user",
    "userName": "user",
    "comment": "Approved.",
    "signDate": "2019-11-04 11:02"
  }
]

- Returned if the baseline is invalid or a general baseline operation failure occurs

- Returned if invalid user credentials, or the user has no permission

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



Delete a single baseline.

REQUEST
DELETE

/rest/com.easesolutions.jira.plugins.requirements/1.0/baseline/delete/baselineId



PARAMETERS
parametertypedescription
baselineId*longthe ID of the baseline



RESPONSES

- Returned if the baseline is deleted

Baseline <baseline_name> with id <baseline_id> has been deleted!

- Returned if the baseline is invalid or a general baseline operation failure occurs

- Returned if invalid user credentials, or the user has no permission

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