I created a webhook that sends a Teams message to a specified Teams Channel.
The message is sent to the Teams channel but it doesnt have the link to the Jira service issue which triggered it.
How it was done: The Team's Channel webhook URL was entered into the Jira Project's automation "Send Web Request" step.
"Custom" was selected for the Web Request Body.
But the customized text is not posted to the channel
The system default message does not contain a link to the issue - so you have to manually copy the issue and go into the JIRA helpdesk and search for it.
The system default shows up even if I don't use a custom body but select "Issue Data (Automation Format)" or "Issue Data (Jira Format)". It doesnt change the body format. Selecting "Empty" gives a 411 error.
Hi @VLTKIM
Thanks so much for reaching out to our wonderful community! I see you're looking to automate sending messages from Jira to a specific Teams channel.
From what you've mentioned, it sounds like you're using the "Send web request" action in Jira Automation. That's a great choice! Just so you know, in your previous message here, you talked about having Jira as the connector in the Manage Channel > Settings tab.
That connector works really well with system webhooks, especially if you're using Jira Server/DC accounts. It grabs info directly from the payload, which should include the URL.
That said, may I know if the channel used is a public or private channel? In case of the latter, for a smooth automation experience, I’d recommend checking out the article: Use Microsoft Teams with Automation. Please find a screenshot of the action below:
Microsoft Team messages support basic markdown for rich formatting. The only limitations are you can't insert:
Images
Inline HTML
HTML Blocks
Custom nodes
If you're using characters such as *
,
#
and you want them to appear as characters in your message content, you need to escape them else they'll be performing a markdown function. You can do this surrounding them with backslashes e.g. \#\
I hope this helps you configure your automation. In case you would like to implement this for a private channel, you might need to use Power Automate in Microsoft and get the work item data from the web request and use it as mentioned in the article Send a message in Teams using Power Automate.
If you have any further queries, please feel free to respond here! We would be glad to help! =D
Best regards,
Haripriya
Hi @VLTKIM
If you sent a web request to the Teams API, what does this API endpoint expect and how does it need to be constructed.
Whenever you ask for help with an Automation Rule it will help us to help you if you provide:
1. what type of project is this (e.g., company-managed, team-managed, etc.),
2. images that show your complete rule.
3. images showing the details of any relevant actions/conditions/branches.
4. images showing the Audit Log details for the rule execution.
5. Explain where the issue is.
These questions are not for not willing to help, but to have community members understand on how automation works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Created an automation rule - that when an issue is created in a project it should send a web request.
The URL to enter here is obtained when you go to the Team's channel and select Jira as the connector in the "manage channel" > settings tab.
In the Jira admin settings > webhooks I entered the URL obtained from the earlier step and specified a JQL query to only trigger for issues in a specified project (by setting project to equal a specific project key).
The Webhook settings page does not contain any other settings other than the events that trigger the webhook.
The message sent by the system webhook to the specified teams channel is:
Issue created: "TEST"
Jane Doe
Testing123
Issue type: Support
Priority: Medium
Status: Triage
Assignee: John Doe
Issue: TEST-12433
There is no link on the message where you can see the full description of the issue. There is no option to change the payload in the webhook settings.
"Issue: TEST-12433" should be a clickable link. but it's just text.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've also tried workflows and powerautomate using "post card in chat or channel", but the smartvalues {{issue.url}} sends an empty value.
The automation custom data body is:
{ "issue_created": "{{issue.created}}", "description": "{{issue.description}}", "url": "{{issue.url}}", "reporter": "{{issue.reporter.displayName}}", "type": "{{issue.issueType.name}}", "project": "{{project.name}}" }
The payload sent back is:
{
"issue_created": "...",
"description": "test",
"url": "",
"reporter": "name",
"type": "Support",
"project": "name"
}
tried to add: {{baseUrl}}/browse/{{issue.key}} into the automation.
"url": "https://yourdomain.atlassian.net/browse/@{triggerBody()?['id']}"
That did not work either.
The other teams message which is sent via JIRA cloud provides a link, but messages from Jira cloud are posted on the Jira cloud chat and not specific channels.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.