I am currently importing data into the Assets app using the Import REST API provided by Atlassian on a set schedule. With the current setup, the objects are only updated or appended. However, is there a way to completely overwrite the objects list during the import with a new list?
Hello @Marc - Devoteam
I am following the workflow detailed here: Index page for Assets Documentation
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is not a workflow, but documentation to the aPI endpoints.
What is the API call you are making, for importing the data?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the article I linked, see sections 5B and 5C. In summary, I start an import using the following endpoint:
POST https://api.atlassian.com/jsm/assets/workspace/...
this response contain links specific to this import:
{
"result": "success",
"links": {
"submitProgress": "https://api.atlassian.com/...",
"submitResults": "https://api.atlassian.com/...",
"getExecutionStatus": "https://api.atlassian.com/...",
"cancel": "https://api.atlassian.com/..."
}
}
I use the "submitResults" endpoint to ingest the data object into Jira Assets. However, I don't see any option to overwrite the existing data in Jira Assets. This ingestion only updates or appends objects but does not delete objects if they are not included in the new incoming data
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How is you mapping defined in assets?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.