The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Harshit Somani
January 10, 2021

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events