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.

This documentation outlines a series of events that are incompatible with Jira Query Language (JQL). These events come with issue-related data within their context, which can be accessed through data.event.issue. The following events are not supported by JQL:

Expand
titleClick to expand:
  • Worklog created

  • Worklog updated

  • Worklog deleted

  • Attachment created

  • Attachment deleted

  • Issue link created

  • Issue link deleted

  • Project Created

  • Project Updated

  • Project Deleted

  • Project soft deleted

  • Project restored deleted

  • Project archived

  • Project restored archived

  • Jira: Version unreleased

  • Jira: Version released

  • Jira: Version created

  • Jira: Version moved

  • Jira: Version updated

  • Jira: Version deleted

  • User created

  • User updated

  • User deleted

  • Option voting changed

  • Option watching changed

  • Option unassigned issues changed

  • Option subtasks changed

  • Option attachments changed

  • Option issue links changed

  • Option time tracking changed

  • Sprint created

  • Sprint deleted

  • Sprint updated

  • Sprint started

  • Sprint closed

  • Board created

  • Board updated

  • Board deleted

  • Board configuration changed

  • Jira expression evaluation failed

Panel
panelIconIdatlassian-check_mark
panelIcon:check_mark:
bgColor#F4F5F7

For more comprehensive information about these events, kindly consult the Atlassian Developer documentation.

🎯 Index

Table of Contents
minLevel3
maxLevel6
outlinefalse
typelist
printablefalse

Worklog Created Example

In this example, we will configure a listener to capture the "Worklog created" event and send a Slack message containing the work log details.

Listener Configuration:

Slack Action Configuration:

Worklog Created Event Data:

Below is an example of the data associated with a "Worklog created" event:

Code Block
languagejs
{
  "timestamp": 1642095588438,
  "webhookEvent": "worklog_created",
  "worklog": {
    "self": "https://ttunca.atlassian.net/rest/api/2/issue/10558/worklog/10003",
    "author": {
      "self": "https://ttunca.atlassian.net/rest/api/2/user?accountId=557058%3Ab6a4007c-244b-4331-a49d-8d12b1cb9665",
      "accountId": "557058:b6a4007c-244b-4331-a49d-8d12b1cb9665",
      "avatarUrls": {
        "48x48": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/557058:b6a4007c-244b-4331-a49d-8d12b1cb9665/01032e29-aee2-433f-9931-dad4245cff4c/48",
        "24x24": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/557058:b6a4007c-244b-4331-a49d-8d12b1cb9665/01032e29-aee2-433f-9931-dad4245cff4c/24",
        "16x16": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/557058:b6a4007c-244b-4331-a49d-8d12b1cb9665/01032e29-aee2-433f-9931-dad4245cff4c/16",
        "32x32": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/557058:b6a4007c-244b-4331-a49d-8d12b1cb9665/01032e29-aee2-433f-9931-dad4245cff4c/32"
      },
      "displayName": "Tolga Tunca",
      "active": true,
      "timeZone": "Europe/London",
      "accountType": "atlassian"
    },
    "updateAuthor": {
      "self": "https://ttunca.atlassian.net/rest/api/2/user?accountId=557058%3Ab6a4007c-244b-4331-a49d-8d12b1cb9665",
      "accountId": "557058:b6a4007c-244b-4331-a49d-8d12b1cb9665",
      "avatarUrls": {
        "48x48": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/557058:b6a4007c-244b-4331-a49d-8d12b1cb9665/01032e29-aee2-433f-9931-dad4245cff4c/48",
        "24x24": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/557058:b6a4007c-244b-4331-a49d-8d12b1cb9665/01032e29-aee2-433f-9931-dad4245cff4c/24",
        "16x16": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/557058:b6a4007c-244b-4331-a49d-8d12b1cb9665/01032e29-aee2-433f-9931-dad4245cff4c/16",
        "32x32": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/557058:b6a4007c-244b-4331-a49d-8d12b1cb9665/01032e29-aee2-433f-9931-dad4245cff4c/32"
      },
      "displayName": "Tolga Tunca",
      "active": true,
      "timeZone": "Europe/London",
      "accountType": "atlassian"
    },
    "comment": "It was easy 🙂 ",
    "created": "2022-01-13T19:39:48.438+0200",
    "updated": "2022-01-13T19:39:48.438+0200",
    "started": "2022-01-13T17:24:26.701+0200",
    "timeSpent": "2h 15m",
    "timeSpentSeconds": 8100,
    "id": "10003",
    "issueId": "10558"
  }
}

Slack Message Script:

Code Block
languagejs
// ? is the Optional_chaining. 
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining

return 'A new Jira event is occurred: ' + data.event.webhookEvent + 
  '. Author: ' + data.event.worklog?.author?.displayName +
  '. Spend time: ' + data.event.worklog?.timeSpent +
  '. Work log comment: ' + data.event.worklog?.comment;
  

Slack Message:

The following message is sent to Slack:

Panel
bgColor#F4F5F7

“A new Jira event is occurred: worklog_created. Author: Tolga Tunca. Spend time: 15m. Work log comment: Easy Peasy\!”