Does anybody have any experience in retrieving Assets from Powershell using the JiraPS module? My usecase is as follows: I've created an asset (i.e. myasset) and then I have a custom field which type is myasset. When I get an issue (Get-JiraIssue) and access the custom field of type myasset I see it contains three fields: workspaceId, id and objectID. However, I am unable to get to the values of the asset... I probably have to run another query with that id or objectID but I can't find anything in the documentation. Any guidance will be highly appreciated! Thank you
Hi and welcome to the Community!
I am not sure that PS has dedicated packages or methods to wrap the Assets API since this is a totally different API.
Your best and more future proof guess here would be to use the Assets REST API from your PS script. The API:
https://developer.atlassian.com/cloud/assets/rest/api-group-object/#api-object-id-get
Hope this gets you on your way!
Jeroen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.