ServiceNow integration failing: ""Invalid event name 'option_attachments_changed'."
Asked by jithin jose:

We are using Atlassian Plugin for Agile Development to connect ServiceNow Agile with Jira. From past few days we are not able to Initiate any connections from ServiceNow to Jira. This issue is being observed from past few days. When Clicked on Connect Button(Auto Creates a webhook in Jira), we get an error message saying "Invalid Payload (400)". Upon investigation we saw that the Error message is as below:  
{  
"messages": \[  
{  
"key": "Invalid event name 'option_attachments_changed'."  
}  
\]  
}  
The payload that is sent to Jira is auto generated by the plugin. and payload will look like below (The bolded event is causing the issue):  
{  
"name": "Jithin testing",  
"url": "<https://www.example.com>",  
"description": "Sample",  
"excludeBody": false,  
"filters": {  
"issue-related-events-section": ""  
},  
"events": \[  
"project_created",  
"board_deleted",  
"comment_updated",  
"board_created",  
"project_deleted",  
"project_updated",  
"sprint_created",  
"jira:issue_updated",  
"sprint_closed",  
"sprint_updated",  
"comment_created",  
"sprint_started",  
**"option_attachments_changed",**  
"jira:issue_created",  
"jira:issue_deleted",  
"sprint_deleted",  
"board_updated"  
\],  
"enabled": true  
}  
Url: <https://example.atlassian.net/rest/webhooks/1.0/webhook>  
**Anyone else facing similar issue; Any work arounds ?**  
Note: *if you have an existing connection, it will work perfectly. If you try to reconnect after disconnecting you will see the issue*


Answers:
author: Marc - Devoteam
body: Hi [@jithin jose](/t5/user/viewprofilepage/user-id/5440331)

Welcome to the community

If you are using an app, and the app compatibility is not correct, reach out to the vendor via their support.

Which app are you using, is it from Atlassian or another vendor and what is the name?

comments: author: jithin jose
body: Hello [@Marc - Devoteam](/t5/user/viewprofilepage/user-id/3796976)   
I am suing Atlassian Agile Spoke for ServiceNow integration. This payload is created by the Spoke (the spoke I assume to be an Atlassian owned component). Jira was supporting this till last week, but currently we are getting this error.   
Generally its not recommended to modify the code inside a spoke.


author: Marc - Devoteam
body: Hi [@jithin jose](/t5/user/viewprofilepage/user-id/5440331)

No this is not developed by Atlassian, but by ServiceNow.

So you would need to raise your issues there any developer that has made an integration needs to keep their integration up to par, related to changes that Atlassian makes on their products


author: Vishnu
body: Hello [@jithin jose](/t5/user/viewprofilepage/user-id/5440331) ,  
I'm also facing same issue with Atlassian Agile Spoke while trying to connect with Jira site. Are you able to find any solution for this!?  

Thanks,  
Vishnu


author: jithin jose
body: [@Vishnu](/t5/user/viewprofilepage/user-id/5441801)

ServiceNow might take some time to fix the spoke. While they are fixing the spoke, you can open the "connector" script and remove the event.


author: Vishnu
body: Thank you, [@jithin jose](/t5/user/viewprofilepage/user-id/5440331)  
For time being that's what I did, removed that event from "Connector" script. Just wanted to check that if you're aware of any solution from Atlassian or ServiceNow for accepting "option_attachments_changed" event.


Tags: cloud

confluence-cloud