Skip to content

Instantly share code, notes, and snippets.

@hectorj2f
Created February 24, 2017 12:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hectorj2f/3253ee4c126b71124f898cd3f18eefda to your computer and use it in GitHub Desktop.
Save hectorj2f/3253ee4c126b71124f898cd3f18eefda to your computer and use it in GitHub Desktop.
$ ./bin/alm-cli list work-item-link-type -H localhost:8080 --pp
2017/02/24 13:02:53 [INFO] started id=AGzGsdJ+ GET=http://localhost:8080/api/workitemlinktypes
2017/02/24 13:02:53 [INFO] completed id=AGzGsdJ+ status=200 time=21.729558ms
{
"data": [
{
"attributes": {
"description": "One bug blocks a planner item.",
"forward_name": "blocks",
"name": "Bug blocker",
"reverse_name": "blocked by",
"topology": "network",
"version": 0
},
"id": "891ab407-e2d4-47df-997c-85083be6db8e",
"links": {
"self": "http://localhost:8080/api/workitemlinktypes/891ab407-e2d4-47df-997c-85083be6db8e"
},
"relationships": {
"link_category": {
"data": {
"id": "47bec40f-6b35-40bb-be58-f83315cdeb32",
"type": "workitemlinkcategories"
}
},
"source_type": {
"data": {
"id": "bug",
"type": "workitemtypes"
}
},
"space": {
"data": {
"id": "6e9248f4-708e-491b-8dfe-9bcc2237f99b",
"type": "spaces"
},
"links": {
"self": "http://localhost:8080/api/spaces/6e9248f4-708e-491b-8dfe-9bcc2237f99b"
}
},
"target_type": {
"data": {
"id": "planneritem",
"type": "workitemtypes"
}
}
},
"type": "workitemlinktypes"
},
{
"attributes": {
"description": "One planner item or a subtype of it relates to another one.",
"forward_name": "relates to",
"name": "Related planner item",
"reverse_name": "is related to",
"topology": "network",
"version": 0
},
"id": "89ae1460-48d3-4926-b2b7-4be332bc9839",
"links": {
"self": "http://localhost:8080/api/workitemlinktypes/89ae1460-48d3-4926-b2b7-4be332bc9839"
},
"relationships": {
"link_category": {
"data": {
"id": "47bec40f-6b35-40bb-be58-f83315cdeb32",
"type": "workitemlinkcategories"
}
},
"source_type": {
"data": {
"id": "planneritem",
"type": "workitemtypes"
}
},
"space": {
"data": {
"id": "6e9248f4-708e-491b-8dfe-9bcc2237f99b",
"type": "spaces"
},
"links": {
"self": "http://localhost:8080/api/spaces/6e9248f4-708e-491b-8dfe-9bcc2237f99b"
}
},
"target_type": {
"data": {
"id": "planneritem",
"type": "workitemtypes"
}
}
},
"type": "workitemlinktypes"
}
],
"included": [
{
"attributes": {
"description": "The system category is reserved for link types that are to be manipulated by the system only.",
"name": "system",
"version": 0
},
"id": "47bec40f-6b35-40bb-be58-f83315cdeb32",
"type": "workitemlinkcategories"
},
{
"attributes": {
"created-at": "2017-02-24T11:59:43.354836Z",
"description": "The system space is reserved for spaces that can to be manipulated by the user.",
"name": "system.space",
"updated-at": "2017-02-24T11:59:43.354836Z",
"version": 0
},
"id": "6e9248f4-708e-491b-8dfe-9bcc2237f99b",
"links": {
"self": "http://localhost:8080/api/spaces/6e9248f4-708e-491b-8dfe-9bcc2237f99b"
},
"relationships": {
"areas": {
"links": {
"related": "http://localhost:8080/api/spaces/6e9248f4-708e-491b-8dfe-9bcc2237f99b/areas"
}
},
"iterations": {
"links": {
"related": "http://localhost:8080/api/spaces/6e9248f4-708e-491b-8dfe-9bcc2237f99b/iterations"
}
}
},
"type": "spaces"
}
],
"meta": {
"totalCount": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment