Create a release record from backend script and apply a template to it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi all, I have below requirements in Digital Product Release:
1. I want to create a release record from background script and apply a release template to it. But on the release record I could not see any particular field which stores this template value, so I am not sure how to apply it.
2. I want to create a change request from backend and attach it to the release record. there is no field on change request which stores release record value.
How to do so? please help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
1. You can invoke the create release function from background script.
Run this from bg:
/sys_ws_operation.do?sys_id=5540c7734fe1e150cab305d4d4ad481b
https://www.servicenow.com/docs/r/api-reference/rest-apis/digital-product-release-api.html
2. For change request, I'm not sure which version of DPR you are using, but you can attach and existing change to a release from within the dpr workspace. Simply click on Add on the change request page.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
hi @Sai Teja1 we can manually tag change request to release but we want to handle this also through api... so I actually need the field which tags release record with change request.
fyi, currently team is creating change request from github through api ... but when it is created, we also want to tag that change request to release through api itself.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Got it. Need to do two steps
1. There is a field "Release version" on change request, you need to provide the version during change creation. This is the same version which was used during the release creation.
2. Create an entry in the 'sn_dpr_model_release_phase_cr' table once the change is created. Provide the change, release and release phase for which the association needs to be done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
hi @Sai Teja1 how to create an entry in the 'sn_dpr_model_release_phase_cr' table from api ? can you please share more details.
