You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I am using a Jenkins groovy script using Curl commands to interact with Stash/Bitbucket.
I can successfully grab all the activity data as a JSON object using the /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/activities
as recommended here:
{"size":25, "limit":25, "isLastPage":false, "values": [{"id":185562, LOTS OF INFO},{"id": #### .....}}
comment_obj_keys = [id, createdDate, user, action, commentAction, comment]
comment_obj_keys.getClass() = class java.util.LinkedHashSet
if comment_obj_keys.contains("comment")
id = 185562
createDate = null
user = [REMOVED]
action = COMMENTED
commentAction = ADDED
comment = [ properties:[repositoryId:1794],
id:16564, version:0,
text:Meaninful results of Jenkins build,
author:[REMOVED],
createdDate:1659127730708,
updatedDate:1659127730708,
comments:[],
tasks:[],
severity:NORMAL,
state:OPEN,
permittedOperations:[editable:true, transitionable:true, deletable:true]]
{"properties":{"repositoryId":1794},
"id":16564,
"version":0,
"text":"Meaninful results of Jenkins build",
"author":REMOVED,
"createdDate":1659071192164,
"updatedDate":1659071192164,
"comments":[],
"tasks":[],
"severity":"NORMAL",
"state":"OPEN",
"permittedOperations":{"editable":false,
"transitionable":true,
"deletable":false}}