Sprint Groups
This chapter focuses on services for the sprint groups.
Get all sprints groups
A GET
to /sprint-groups
returns all the sprint groups that the user is allowed to read.
HTTP request
GET /api/rest/latest/sprint-groups?size=2&page=0 HTTP/1.1
Accept: application/json
Host: localhost:8080
Query parameters
Parameter | Description |
---|---|
|
number of the page to retrieve (optional) |
|
size of the page to retrieve (optional) |
|
which attributes of the returned entities should be sorted on (optional) |
|
which fields of the elements should be returned (optional) |
|
which type of the element should be returned (optional) |
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1050
{
"_embedded" : {
"sprint-groups" : [ {
"_type" : "sprint-group",
"id" : 456,
"name" : "sample sprint group",
"_links" : {
"self" : {
"href" : "http://localhost:8080/api/rest/latest/sprint-groups/456"
}
}
}, {
"_type" : "sprint-group",
"id" : 567,
"name" : "sample sprint group 2",
"_links" : {
"self" : {
"href" : "http://localhost:8080/api/rest/latest/sprint-groups/567"
}
}
} ]
},
"_links" : {
"first" : {
"href" : "http://localhost:8080/api/rest/latest/sprint-groups?page=0&size=2"
},
"self" : {
"href" : "http://localhost:8080/api/rest/latest/sprint-groups?page=0&size=2"
},
"next" : {
"href" : "http://localhost:8080/api/rest/latest/sprint-groups?page=1&size=2"
},
"last" : {
"href" : "http://localhost:8080/api/rest/latest/sprint-groups?page=3&size=2"
}
},
"page" : {
"size" : 2,
"totalElements" : 7,
"totalPages" : 4,
"number" : 0
}
}
Response fields
Path | Type | Description |
---|---|---|
|
|
the list of elements for that page |
|
|
the page size for that query |
|
|
total number of elements the user is allowed to read |
|
|
how many pages can be browsed |
|
|
the page number |
|
|
related links |
Links
Relation | Description |
---|---|
|
link to the first page (optional) |
|
link to the previous page (optional) |
|
link to this page |
|
link to the next page (optional) |
|
link to the last page (optional) |
Get sprint group
A GET
to /sprint-groups/{id}
returns the sprint group with the given id.
Path parameters
Parameter | Description |
---|---|
|
the id of the sprint group |
HTTP request
GET /api/rest/latest/sprint-groups/123 HTTP/1.1
Accept: application/json
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 984
{
"_type" : "sprint-group",
"id" : 123,
"name" : "sample sprint group",
"description" : "sample description",
"created_by" : "admin",
"created_on" : "2024-10-02T10:00:00.000+00:00",
"last_modified_by" : "sample user",
"last_modified_on" : "2024-10-12T10:00:00.000+00:00",
"project" : {
"_type" : "project",
"id" : 16,
"name" : "sample project",
"_links" : {
"self" : {
"href" : "http://localhost:8080/api/rest/latest/projects/16"
}
}
},
"path" : "/sample project/sample sprint group",
"parent" : {
"_type" : "project",
"id" : 16,
"name" : "sample project",
"_links" : {
"self" : {
"href" : "http://localhost:8080/api/rest/latest/projects/16"
}
}
},
"attachments" : [ ],
"_links" : {
"self" : {
"href" : "http://localhost:8080/api/rest/latest/sprint-groups/123"
},
"project" : {
"href" : "http://localhost:8080/api/rest/latest/projects/16"
}
}
}
Response fields
Path | Type | Description |
---|---|---|
|
|
the type of this entity |
|
|
the id of this sprint group |
|
|
the name of this sprint group |
|
|
the description of this sprint group |
|
|
the user who created this sprint group |
|
|
the date the sprint group was created |
|
|
the user who last modified this sprint group |
|
|
the date the sprint group was last modified |
|
|
the project this sprint group belongs to |
|
|
the path of this sprint group |
|
|
the parent entity of this sprint group |
|
|
the attachments of this sprint |
|
|
related links |
Links
Relation | Description |
---|---|
|
link to this sprint group |
|
link to the project of this sprint group |
Create a sprint group
A POST
to /sprint-groups
creates a new sprint group.
HTTP request
POST /api/rest/latest/sprint-groups HTTP/1.1
Content-Type: application/json
Accept: application/json
Content-Length: 162
Host: localhost:8080
{
"name" : "New sprint group",
"description" : "<p>The new sprint group description</p>",
"parent" : {
"_type" : "campaign-folder",
"id" : 846
}
}
Request fields
Path | Type | Description |
---|---|---|
|
|
the name of the sprint group |
|
|
the description of the sprint group |
|
|
the parent entity of the sprint group |
HTTP response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 998
{
"_type" : "sprint-group",
"id" : 1234,
"name" : "New sprint group",
"description" : "<p>The new sprint group description</p>",
"created_by" : "admin",
"created_on" : "2024-10-02T10:00:00.000+00:00",
"last_modified_by" : "sample user",
"last_modified_on" : "2024-10-12T10:00:00.000+00:00",
"project" : {
"_type" : "project",
"id" : 98,
"name" : "Special project for sprint groups",
"_links" : {
"self" : {
"href" : "http://localhost:8080/api/rest/latest/projects/98"
}
}
},
"path" : "/Special project for sprint groups/New sprint group parent/New sprint group",
"parent" : {
"_type" : "campaign-folder",
"id" : 846,
"name" : "New sprint group parent",
"_links" : {
"self" : {
"href" : "http://localhost:8080/api/rest/latest/campaign-folders/846"
}
}
},
"attachments" : [ ],
"_links" : {
"self" : {
"href" : "http://localhost:8080/api/rest/latest/sprint-groups/1234"
}
}
}
Response fields
Path | Type | Description |
---|---|---|
|
|
the type of this entity |
|
|
the id of the created sprint group |
|
|
the name of the created sprint group |
|
|
the description of the created sprint group |
|
|
the user who created this sprint group |
|
|
the date the sprint group was created |
|
|
the user who last modified this sprint group |
|
|
the date the sprint group was last modified |
|
|
the project the created sprint group belongs to |
|
|
the path of the created sprint group |
|
|
the parent entity of the created sprint group |
|
|
the attachments of the created sprint group |
|
|
related links |
Links
Relation | Description |
---|---|
|
link to this sprint group |
Modify a sprint group
A PATCH
to /sprint-groups/{id}
modifies the sprint group with the given id.
HTTP request
PATCH /api/rest/latest/sprint-groups/1234 HTTP/1.1
Content-Type: application/json
Accept: application/json
Content-Length: 62
Host: localhost:8080
{
"name" : "new name",
"description" : "new description"
}
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 934
{
"_type" : "sprint-group",
"id" : 1234,
"name" : "New name for my sprint group",
"description" : "<p>The description has changed</p>",
"created_by" : "admin",
"created_on" : "2024-10-02T10:00:00.000+00:00",
"last_modified_by" : "sample user",
"last_modified_on" : "2024-10-12T10:00:00.000+00:00",
"project" : {
"_type" : "project",
"id" : 98,
"_links" : {
"self" : {
"href" : "http://localhost:8080/api/rest/latest/projects/98"
}
}
},
"path" : "/Special project for sprint groups/Sprint group, I am your parent/New name for my sprint group",
"parent" : {
"_type" : "campaign-folder",
"id" : 846,
"_links" : {
"self" : {
"href" : "http://localhost:8080/api/rest/latest/campaign-folders/846"
}
}
},
"attachments" : [ ],
"_links" : {
"self" : {
"href" : "http://localhost:8080/api/rest/latest/sprint-groups/1234"
}
}
}
Delete sprint group
A DELETE
to /sprint-groups/{ids}
deletes one or several sprint groups with the given ids.
Path parameters
Parameter | Description |
---|---|
|
the sprint-group ids to delete |
HTTP request
DELETE /api/rest/latest/sprint-groups/123,%20456 HTTP/1.1
Accept: application/json
Host: localhost:8080