MarkLogic Server 11.0 Product Documentation
infodev:ticket-add-annotation

infodev:ticket-add-annotation(
   $ticket-id as xs:string,
   $annotation as element(info:annotation)
) as empty-sequence()

Summary

[DEPRECATED] This function adds annotation to the specified ticket.

Parameters
ticket-id The id of the ticket to which to add the annotation.
annotation A custom annotation element designed to store implementation-specific data.

Example

  xquery version "1.0-ml"; 

  import module namespace info = "http://marklogic.com/appservices/infostudio"  
      at "/MarkLogic/appservices/infostudio/info.xqy"; 
  import module namespace infodev = "http://marklogic.com/appservices/infostudio/dev"
      at "/MarkLogic/appservices/infostudio/infodev.xqy";

  let $ticket-id := "/tickets/ticket/10095158268051211232"
  let $annotation := <info:annotation>Adding corrected documents</info:annotation>

  return
    infodev:ticket-add-annotation($ticket-id, $annotation)

  (: Adds an annotation to the specified ticket. :)
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy