REST API - Open Standard changes from template with specific tasks

TViktor88
Tera Contributor

Hi all,

I would like to open changes from standard templates with REST API using the endpoint:

 

POST /sn_chg_rest/change/standard/{standard_change_template_id

 

However the target templates has tasks defined in them marked with 'mandatory' field both true and false. When I open a change now through the API, only the mandatory tasks get opened with the change ticket.

 

Can I specify which tasks I want to be opened from the template during the change opening request?

 

Thank you.

1 ACCEPTED SOLUTION

Maik Skoddow
Tera Patron
Tera Patron

Hi @TViktor88 

unfortunately not. If you are using standard ServiceNow API you have to live with the results.

Instead, you could implement your own endpoint via Scripted REST API and try to achieve your goal with a custom scripted approach.

Maik

View solution in original post

1 REPLY 1

Maik Skoddow
Tera Patron
Tera Patron

Hi @TViktor88 

unfortunately not. If you are using standard ServiceNow API you have to live with the results.

Instead, you could implement your own endpoint via Scripted REST API and try to achieve your goal with a custom scripted approach.

Maik