Hi Team,
We are doing Service now to JIRA Integration and got the end point from Jira team to pull the updated comments
ServiceNow END Point : ${base_url}/rest/api/2/issue/${issueKey}/comment?updated%3E-1h
but it pulling comments from all the records. Please do advice here?
Thanks in Advance,
Simha
@Simha R ,
The endpoint /rest/api/2/issue/{issueIdOrKey}/comment indeed returns all comments for the given issue and does not accept parameters (so you cannot restrict it to only return comments added in the last hour).
This is documented in: https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-issue-issueIdOrKey-comment-get
If you want to synchronize Jira Comments to ServiceNow, then you may want to configure a Webhook in Jira that will call a ServiceNow endpoint to update the desired data every time a comment is added, updated or deleted.
For further details please see:
I hope this helps.
Cheers,
Dario
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.