Hi all,
I'm automating some jira tasks using Project automation by sending a POST request to a webhook they provide me. In that request, I'm sending some HTML code as additional data to populate the description.
My description in the rule is just: {{webhookjson.template}}. I've been able to send the code over just fine and it shows up in the tasks I've created but it just looks like code.
i've been using postman:
This is my rule:
This is the description that shows up when the task is created:
This is what I want it to kinda look like:
Does anyone know I can get that code to be rendered?
Thanks,
Osaid
Hi @Osaid Khilfeh -- Welcome to the Atlassian Community!
For a question like this, please post images of the following to provide context. That will help the community offer better suggestions.
Thanks!
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for that information. I do not believe that will work as the two possible field renderers can handle the wiki markup and plain text (plus HTML links).
A few options are to:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Different but related question then: do you know how to add attachments using the webhook? I’m not sure how to.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There are examples like this if you search in the developer community or in the REST API documentation. For example:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you know if this work when creating a new task? What you linked me seems to be for adding attachments to current tasks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My understanding is if the attachment is available by a web location or included in the message it will attach.
If that does not work, you could make the web request call after the task is created, referencing {{createdIssue.key}} as the target to add the attachment.
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.