Service Desk Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

writing history lines with WEB API

Highlighted
Geert Van Riet
Occasional Contributor

writing history lines with WEB API

We have a java program that uses web api to remove relationships between blocked CI's. But now we get errors trying to write history lines on these "blocked" CI's.
Should it be possible to write a history line on a blocked CI? If yes, how exactly?

Thanks for any clarity on this.
1 REPLY

Re: writing history lines with WEB API

when you block a CI you can not alter any attributes of it (at least that should be the case). You also cannot create relations to a blocked CI. That is one of the reasons WHY you block a CI.
If you want to add a history line you should unblock the CI, add the history line and the block it again.
//Add this to "OnDomLoad" event