Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Work with Assets data via REST

When using the REST API, you can access and modify STAGIL Assets fields in the same way you would do with other issue fields. When getting the data, you can use your REST call to get the issues data and see all related issues in the Assets custom field as issue keys:

 

STAGIL Assets also provides several custom field types. One of them gives you the ability to create QR or bar codes for your assets/issues. If you want to retrieve the images via the REST API, e.g. to use them somewhere else for printing, simply look out for your custom field ID in the body of the GET request, where you will find the path to the image. It will look like this:

GET Advanced Links Field Values

You can retrieve the information contained in a relation custom field via the following two URLs, which will give you the same results:

URL 1:

https://yourjiraURL.com/rest/soj/1.0/relationField/values/relation/{relationId}/{issueOutKey}/{issueInKey}

URL 2:

https://yourjiraURL.com/rest/soj/1.0/relationField/values/{issueLinkTypeId}/{issueOutKey}/{issueInKey}

You will get the following response: {“relationFieldValues”: [{“name”: “Name of relation”, “id”: “10”, “type”: “text”, “valueStr”:”relation attribute(s)”}]

How to retrieve the issue link type ID?

Navigate to the issue graph with the relation which contains attribute(s). Active “Inspect Element” in your browser settings and click on the arrow in your graph that contains the attribute.

GET Link History

This is a REST call to get the Link History of the defined link type of a specific issue:

URL:

https://yourjiraURL.com/rest/soj/1.0/api/asset/linkhistory/issue/PM-10/linktype/relates to
  • No labels