com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links' is unknown.

Retrieving All Records Matching the Given Search Query via JS API

Overview

Function

search (queryInfo, success, error)

Description

Returns all records that match the given search query.

OutputA JSON String array containing the records in the ‘message’ element within the argument of the success callback.

Example

var queryInfo = { 
    tableName : "TEST", //table being queried 
    searchParams : {
        query : "column1:value1", //lucene query to search the records 
        start : 0, //starting index of the matching record set 
        count : 100 //page size for pagination 
     }
}; 


client.search(queryInfo, function(data) { 
        console.log (data["message"]); 
}, function(error) { 
        console.log("error occured: " + error); 
});

Sample output

[{
    "id":"14399961246350.13125980939205978",
    "tableName":"TEST","timestamp":1439996124610,
    "values":{
        "column1":"value1",
        "column2":"value2"
    }
},
{
    "id":"14399961246350.13125980939205999",
    "tableName":"TEST","timestamp":1439996124610,
    "values":{
        "column1":"value1",
        "column2":"anotherValue2"
    }
}
]
com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.