...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Table of Contents |
---|
...
Button handy | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
...
...
Predefined structures for a Stride message
...
...
...
...
...
...
Now your configuration is ready to be used in a script.
...
...
...
...
...
...
...
...
...
...
...
To send a message to Stride when an issue is created, add a post-function on the create transition in Jira with the following code:
Code Block |
---|
JStrideContent reporter;
reporter.type = "text";
reporter.text = key.reporter + "created ";
JStrideAttrs attrs;
attrs.href = getIssueURL(key);
attrs.title = key;
JStrideMarks link;
link.type = "link";
link.attrs = attrs;
JStrideContent issueKey;
issueKey.type = "text";
issueKey.marks = {link};
issueKey.text = key;
JStrideContent summary;
summary.type = "text";
summary.text = " : " + key.summary;
JStrideContent paragraph;
paragraph.type = "paragraph";
paragraph.content = {reporter, issueKey, summary};
JStrideMessage message;
message.version = 1;
message.type = "doc";
message.content = {paragraph};
return sendIntegrationMessage("PS", message); |
Here's an example of how such notification can look like in Stride.
See also
...