Jira API provide a create_issues methods to create a list of issues (bulk) in one call. I am wondering if there is a method to add comments for a bulk of issues ? I know that there is add_comment and we can loop around.
thanks
Hi @Gouiaa
welcome to the community!
I'm not aware of a bulk commenting API. You'll have to call the regular, single commenting API multiple times.
Alternatively, if you're open to solutions from the Atlassian Marketplace, you'll have more options available. E.g., you may want to have a look at the app that my team and I are working on: JXL for Jira.
JXL is a full-fledged spreadsheet/table view for your work items (issues) that allows viewing, inline-editing, sorting, and filtering by all your work item fields, much like you’d do in e.g. Excel, Google Sheets, Smartsheet, or Airtable. It also comes with a long list of advanced features, including the ability to inline-edit your fields in bulk, using copy/paste.
This also works for comments, like so:
I should add that JXL can do much more than the above: From support for configurable issue hierarchies, to issue grouping by any issue field(s), sum-ups, or conditional formatting.
Any questions just let me know,
Best,
Hannes
Hi @Gouiaa
As far as I am aware, there is no direct bulk API endpoint for adding comments to multiple issues in one request.
One option like you mentioned would be to use add_comment inside a loop over the issue keys.
Another option would be to set up a Jira Automation rule:
Trigger: Manual / Issue updated
Action: Add comment
Then you only make one API call to bulk-update issues (like labeling them) and the rule adds comments.
Hope this helps!
Regards
Rajat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Gouiaa ,
You can try out the below solution to bulk add Comments using postman:
How to send bulk API requests using Postman | Jira and Jira Service Management | Atlassian Support
I'll like to mention that Jira fetches the fields that we can bulk update, in my site I saw "comment" as an option too, maybe it would work for you too?
If this is present, the you can use the Bulk Edit API here : The Jira Cloud platform REST API
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is no direct Jira API method to add comments in bulk to multiple issues in one call like the create Issues bulk method. The recommended approach is to loop through the issues and use the add comment API for each issue individually. Some users mention that bulk update endpoints do not support bulk commenting, so a loop remains the common solution. Alternatively, Jira Automation rules can help add multiple comments efficiently in workflows if that fits your use case. As far as I know, I think this is the only method.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.