Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Please help me with asset adding,not able to add assets with different app keys

I am trying to add assets by the procedure shown in this link,

https://developer.atlassian.com/cloud/assetsapi/introductions-and-basics/getting-started/

But the assets I added are shown in jira only when I give the app ket as 'my-app',if am changing the appkey to any other name like 'my-app1',the assets I added are not being shown in my instance.
Also when I tried to add asset with anyother appkey other than 'my-app',the terminal shows the same output which is shown when asset is added successfully,also when I used the get command to retrive the assets,I get all the assets inlcuding the assets with the app key anything other than 'my-app',the assets are not being shown in jira instance thats it,how can solve this issue?

click on this link to see the screen shots


This is the code I used

curl -X PUT \

  https://harshitsomani98.atlassian.net/rest/assetapi/asset \

  -H 'Content-Type: application/json' \

  -H 'cache-control: no-cache' \

  -d '{

    "origin": {

        "appKey": "my-app1",

        "originId": "randomoriginid"

    },

    "label": {

        "value": "iPad 101 pro"

    }

}' --user harshit@cloudlds2.com:FHk8dosSklDNF24DilixD5E2

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Service Management

Submit your Jira Service Management use case and win!

Hi everyone - in case you haven’t heard, we’re hosting the show of the century on November 10th: High Velocity: ITSM World Tour.     This virtual, concert-themed experience...

272 views 1 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you