jira spoke copy attachment from jira to service now

lior grinberg2
Tera Expert

Hi,

I'm testing the Jira spoke and I'm missing a step and hoping that you will be able to help me.

I saw that when I upload a file to jira issue I'm able to see that in service now with the jira event "attachment_created" with all the payload.

My question is what step should I do in order to copy this attachment to a record inside service now?

Thanks,

Lior Grinberg

1 ACCEPTED SOLUTION

lior grinberg2
Tera Expert

Hi All,

I was able to create the attachment with the step "rest api" in the flow designer.

Thanks all.

Lior grinberg

View solution in original post

11 REPLIES 11

Harshal Gawali
Giga Guru

Hello Lior,

Please check below link.

How do I send a Jira attachment using Webhook

 

Regards,

Harshal.

Ankur Bawiskar
Tera Patron
Tera Patron

@lior grinberg 

Since you want attachment when added in JIRA to be brought into ServiceNow please check below points

As per docs JIRA spokes can be used when an event occurs in the Now Platform.

ServiceNow controls the trigger of integration, remote system (in this case Jira) is the receiver of the commands.

Such as incident created in ServiceNow you can use Create issue.

You can send attachments from ServiceNow to JIRA.

So I believe out of the box it won't handle the vice-versa i.e. spoke able to handle the incoming attachment and adding to specific record.

I think you need to handle this using custom API approach.

https://docs.servicenow.com/bundle/newyork-servicenow-platform/page/administer/integrationhub-store-...

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi,

I tried to use the rest api step in the flow designer, it has the option to store the response has an attachment but it did not work for me.

Do you you know how to use this step for this purpose?

Best regrads,

Lior grinberg

@lior grinberg 

the rest api you might have used is for consuming the JIRA endpoint.

But as per your question you require attachment when added to JIRA should attach to the record in ServiceNow.

If the REST API you are consuming will give you the attachment content for the ServiceNow ticket then you can parse the API response and create attachment to record

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader