looking for end point to pull updated comments from Jira in last 1 our

Simha R June 24, 2019

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

1 answer

0 votes
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 3, 2019

@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

Suggest an answer

Log in or Sign up to answer