Automation: Trigger

This feature is currently in an exploration stage for Cloud, meaning we’ve released it early, to learn, how customers use it and how to improve it. Therefore, the documentation is still growing. The feature will be released for Data Center in the future, too.

If you have any questions or are eager to share feedback, we’d be very happy to hear your thoughts.

Definition

Triggers in a Microsoft 365 tool are fired if a specific condition is met, e.g. “chat created” will be triggered for an issue, if a chat was created on this issue either via manual UI or automation “Create Teams chat”.

Learn more about how to use webhooks here!

Overview triggers

Explore the potential and features of our Microsoft 365 triggers.

Not sure yet about what to do? Learn more about our Microsoft 365 automations here!

Teams chat created

Fired when a chat was successfully created in an Jira issue. The chat information will be accessible in the following automation.

Configurable data:

  • Scope (Global or one or multiple Jira projects)

Example: Similar to using the JSM comment functionality, an agent would want to stop the “time to first response” SLA once a Teams chat with the customer has been started. The trigger “Chat created” can move the issue into a different column which then stops the SLA.

You can use the following data of the trigger wherever smart-values are supported with the{{webhookData}} annotation. For example: {{webhookData.chat.topic}} = Example chat topic

{ chat: { topic: 'Example chat topic', audience: 'internal', messages: [{ id: '1673964391687', text: '<p>Example message text</p>', webUrl: 'null', sender: { emailAddress: 'MeganB@onmicrosoft.com', azureUser: { oid: '48d31887-5fad-4d73-a9f5-3c356e68a038', tenantId: 'dcd219dd-bc68-4b9b-bf0b-4a33a796be35' } } }], creator: { azureUser: { oid: '48d31887-5fad-4d73-a9f5-3c356e68a038', tenantId: 'dcd219dd-bc68-4b9b-bf0b-4a33a796be35', }, emailAddress: '', atlassianUser: { accountId: '487428:as62sa3e-978f-460c-b954-c1c8783683a36', }, azureBot: { botId: '', displayName: '' } }, members: [{ emailAddress: 'AdeleV@onmicrosoft.com', azureUser: { oid: '87d349ed-44d7-43e1-9a83-5f2406dee5bd', tenantId: 'dcd219dd-bc68-4b9b-bf0b-4a33a796be35' } }], createdDateTime: '2023-09-05T11:00:00.0+0200', lastUpdatedDateTime: '2023-09-05T11:00:00.0+0200', } }

Teams conversation created

Fired when a conversation was successfully created in an issue. The conversation information will be accessible in the following automation steps.

Configurable data:

  • Scope (Global or one or multiple Jira projects)

Example: When creating a Teams conversation in an issue set a comment for the reporter or send an email to the stakeholder with a predefined template that you are discussing this internally with your team.

You can use the following data of the trigger wherever smart-values are supported with the{{webhookData}} annotation. For example: {{webhookData.createdFrom}} = jira

{ createdFrom: 'jira', channelMessage: { id: '1673966101252', aadGroupId: '02bd9fd6-8f93-4758-87c3-1fb73740a315', channelId: '19:d0bba23c2fc8413991125a43a54cc30e@thread.skype', tenantId: 'dcd219dd-bc68-4b9b-bf0b-4a33a796be35', webUrl: 'https://teams.microsoft.com/l/message/19:d0bba23c2fc8413991125a43a54cc30e@thread.skype/1673966101252?tenantId:dcd219dd-bc68-4b9b-bf0b-4a33a796be35&groupId:02bd9fd6-8f93-4758-87c3-1fb73740a315' } }

Teams bot channel message received

Fired when the Teams bot receives a message with the configured keyword in a channel.

Configurable data:

  • Channels

  • Trigger on all messages, only linked replies, only on top-level messages or only on replies

  • Regular expression the message text must match with

Example: When a team member adds a custom bot command, e.g. #review to a Teams channel conversation the attached issue goes to a dedicated column, e.g. “review”. Team members don’t have to log in into Jira to move Jira issues.

You can use the following data of the trigger wherever smart-values are supported with the{{webhookData}} annotation. For example: {{webhookData.channelMessage.text}} = #myMessage

{ channelMessage: { text: "#myMessage", id: "1673966742636", aadGroupId: "02bd9fd6-8f93-4758-87c3-1fb73740a315", channelId: "19:d0bba23c2fc8413991125a43a54cc30e@thread.skype", tenantId: "dcd219dd-bc68-4b9b-bf0b-4a33a796be35", sender: { azureUser: { oid: "48d31887-5fad-4d73-a9f5-3c356e68a038", tenantId: "dcd219dd-bc68-4b9b-bf0b-4a33a796be35" }, emailAddress: "MeganB@onmicrosoft.com", atlassianUser: { accountId: "487428:as62sa3e-978f-460c-b954-c1c8783683a36" } }, webUrl: "https://teams.microsoft.com/l/message/19:d0bba23c2fc8413991125a43a54cc30e@thread.skype/1673966742636?tenantId=dcd219dd-bc68-4b9b-bf0b-4a33a796be35&groupId:02bd9fd6-8f93-4758-87c3-1fb73740a315" } }

Teams bot personal message received

Fired when the Teams bot receives a personal message with the configured keyword.

Configurable data:

Example: When a team member sends a custom bot command, such as #create, to the bot, the automation rule creates a new issue in Jira.

You can use the following data of the trigger wherever smart-values are supported with the{{webhookData}} annotation. For example: {{webhookData.message.sender.emailAddress}} = MeganB@onmicrosoft.com

Outlook Email sent

Fired when a email was successfully sent in an Jira issue. The email information will be accessible in the following automation.

Configurable data:

  • Scope (Global or one or multiple Jira projects)

Example: When a team member sends an email from a Jira issue the issue will be transition to status “in progress” and a Start Date/Due Date will be added.

You can use the following data of the trigger wherever smart-values are supported with the {{webhookData}} annotation. For example: {{webhookData.email.subject}} = Test email

Outlook Meeting created

Fired when a meeting was successfully created in an Jira issue. The meeting information will be accessible in the following automation.

Configurable data:

  • Scope (Global or one or multiple Jira projects)

Example: When a team member created an meeting from a Jira issue the issue will be transition to status “in progress” and a comment with the “Join url” will be added.

You can use the following data of the trigger wherever smart-values are supported with the {{webhookData}} annotation. For example: {{webhookData.event.subject}} = Test meeting

Get to know actions

Sure, you can also explore the potential of Microsoft 365 actions.