Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

REST API to search for a keyword in commit comment/message.

I need a REST API which can be used to search for a keyword (say 'mark') in commit's message.

For e.g. something like this:

/api/commits?q='mark'

 

Is there any REST API available for this? If no REST API is available, then any other solution?

 

I have also seen that in REST API which lists commit's comments, there is filtering and sorting parameter 'q'. Can this 'q' be used to solve the above problem?

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Oct 11, 2022

Hi @Kushagra Behere and welcome to the community!

I'm afraid that the commits API endpoint does not support filtering with the 'q' parameter at the moment.

As a workaround, you could retrieve all commits via the API and then use another tool that filters JSON data, like jq, in order to filter the results.

We have a feature request for adding filtering and sorting to the commits endpoint:

I would suggest voting for it and leaving a comment there to further express your interest.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events