Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Warning

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !


Info
titleAvailability

This routine is available starting with SIL Engine™ 4.15.50.

Syntax

appendToWebhookResponse(responsePart)

...

Parameter name

Type

Required

Description

responsePart

string

Yes

The object to be added to the response.


Note
titleNOTE

If the responsePart parameter has another type but string, a conversion to string will be attempted.

In this case, this is uncertain what will the actual resulting string will look like, or an event if it will exist, is uncertainexists.


Example

Code Block
languagecpp
themeConfluence
//getting the REST/HTTP call input parameters:
WebhookPayload httpRequestPayload = getWebhookPayload();

//getting the used HTTP method:
string httpMethod = httpRequestPayload.httpMethod;//This can be something like "GET", "POST", "PUT" etc.

//getting the http request payload (body):
string httpPayload = httpRequestPayload.payload;

//getting the http query parameters:
WebhookParam[] httpQueryParams = httpRequestPayload.queryParams;
string firstQueryParamName = httpQueryParams[0].name;
string firstQueryParamValue = httpQueryParams[0].values[0];

//sending the response back to the caller:
appendToWebhookResponse("http method:");
appendToWebhookResponse(httpMethod);
appendToWebhookResponse("payload:");
appendToWebhookResponse(httpPayload);
appendToWebhookResponse("firstQueryParamName:");
appendToWebhookResponse(firstQueryParamName);
appendToWebhookResponse("firstQueryParamValue:");
appendToWebhookResponse(firstQueryParamValue);

//returning a custom HTTP status code:
return true, 1234200;

See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel in ( "predefined_structure_types" , "webhooks_configuration" , "webhooks_routines" )
labelsjira_project_routine