Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing Assets from Powershell

Miguel Gallo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 3, 2025

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

1 answer

0 votes
Jeroen Poismans
Community Champion
July 17, 2025

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events