The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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