Versions Compared

Key

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

Contents

Table of Contents

...

  1. In your Jira, go to Manage add-ons > cPrime Plugin Configuration > Integration Configurations, and click Add Integration.
    Image Removed
    Image Added

  2. Fill in the necessary fields:
    • Name - the name of the integration, it should be unique from other integrations
    • Type - the integration type 
    • Access token
    • Conversation URL - you need to specify this for Stride integration only
      Image Removed
      Image Added

  3. Save the integration. After saving the added integration, a new entry is added to the table on the Integration Configurations page. 

...

  1. Go to Stride and select your room.
  2. Open the Apps sidebar, click "+" > Add custom app > API tokens, and specify the app name.
    Image Removed
    Image Added

  3. Copy conversation URL and an access token
    Image Removed
    Image Added

  4. Insert these to the corresponding fields on the Integration Configurations page.
    Image Removed
    Image Added

Now your configuration is ready to be used in a script.

...

In order to send a message to a Slack room, add an integration configuration on the Integration Configurations page. The access token can be a bot, a workspace, or a user token. If you want to create a bot for your workspace, perform the following steps:

  1. Navigate to the Bots page in the Slack App Directory.
  2. Click Add Configuration.
  3. Choose a username for your bot and add the bot integration.
    Image Removed
    Image Added

  4. Copy the access token to the Integration Configurations page and Save.
    Image Removed
    Image Added
  5. Now your configuration is ready to be used in a script.

    Info

    You can read more about how to create/regenerate tokens for Slack here.

...

To send a message to Slack when an issue is created, add a post-function on the create transition in Jira with the following code:

Code Block
JSlackAttachment issue;
issue.pretext = key.reporter + " created:";
issue.title = key;
issue.title_link =getIssueURL(key);
issue.text = key.summary;

JSlackMessage message;
message.channel = "C94S1U658"; // Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name
message.attachments = {issue};

return sendIntegrationMessage("SLACK", message);

Here's an example of how such notification can look like in Slack.

Image RemovedImage Added

Send a message to Stride when an issue is created

...

Here's an example of how such notification can look like in Stride.

Image RemovedImage Added

See also

sendIntegrationMessage — 

Insert excerpt
sendIntegrationMessage
sendIntegrationMessage
nopaneltrue