Versions Compared

Key

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

Button handy
blankfalse
color#0052CC
nameCloud
linkhttps://appfire.atlassian.net/wiki/spaces/EIFJC/pages/10125437/Installation
width84
Button handy
blankfalse
color#EBECF0
nameOn-Prem
linkhttps://appfire.atlassian.net/wiki/spaces/EI4J/pages/11206868/Installation
width85

Panel
panelIconIdatlassian-info
panelIcon:info:
bgColor#F4F5F7

This page is about Easy Integrations for Jira Cloud. Using Jira On-Prem? Click the On-Prem button above.

The Add a Jira Comment action can be used to comment on any Jira issue.

...

This documentation provides step-by-step instructions on how to configure this action within Easy Integration.

🎯 Index

Table of Contents
minLevel3
maxLevel6
outlinefalse
typelist
printablefalse

How to Configure the Add a Jira Comment Action

The Add a Jira Comment action in Listeners can be accessed within Easy Integration's admin UI. Follow these steps to configure:

  1. Navigate to Jira's top menu, and click Apps.

  2. Select Manage your apps.

  3. In the sidebar, locate and click Easy Integrations configuration.

  4. Select Listeners from the app’s top menu.

  5. Configure the listener according to your requirements. For more information on that, refer to this documentation.

  6. In the Actions section of the listener configuration, click Add a Jira Comment.

Here's how to set up the Add a Jira Comment action

...

:

...

Field Name

Image Added
  1. Action name

...

  1. Give

...

  1. a descriptive name

...

Condition

...

  1. to easily identify this action.

  2. Condition – Enable or disable the condition.
    When enabled,

...

  1. provide a JavaScript condition

...

  1. for the listener. The action will execute only if the script returns true.

...

  1. You can refer to Context variables, Scripts, and Events for more details.

...

  1. For example:

...


  1. return

...

  1. startsWith(data.event.issue.fields.summary,

...

  1. 'Sultans

...

  1. of

...

  1. Swing');

  2. Custom issue key

...

Unchecked: Event's issue

...

  1. Whenunchecked, the event’s issue will be used. When checked, a custom issue will be used.

  2. Issue ID or Key script

...

  1. Write a JavaScript script that returns an Issue ID or key.

...

  1. You can use event data or previous action data

...

  1. in the script.

...

  1. For example:

...


  1. return

...

  1. data.apiData.api1.responseBody.issueId;

  2. Visibility

...

Field

Description

Service Management projects

  1. For Service Management projects, select either "Internal Only" or "Share with Customer".

...

Software and Business projects

  1. For Software and Business projects, select either a role or a group.

  2. Comment Text script

...

  1. Write a JavaScript script that returns a text for comment. Event data or previous action data can be used in the script.

...

  1. For example:

...


  1. return

...

  1. data.event.issue.fields.summary;

...

  1. Click Save, and then save your listener configuration as well.

That’s it! You have successfully configured the Send an Email for a Jira Issue action in Easy Integrations. To gain more insights, check out the following example:

Example 1: Add a Jira Comment

The following example adds a comment to an issue, in which the issue key is fetched from the second action response, and the comment text is fetched from the first action.

Note: This is a sample use case and can be customized to suit your integration needs.

...

Expand
titleExample:
Image Added