I would like to create a Python Automation where I get all the tickets (link, subject, description) that I made a comment on, in the previous month (December 2024).
Is there any way to do that?
Hi @Haris Arifovic , welcome to the Community!
Unfortunately, there is no native way that I am aware of to find all Jira Issues that you have commented on.
There should be a way to capture this data though, and that's through external, 3rd party add-ons for Jira Cloud.
One in particular is Enhanced Search for Jira, which has a commentedBy() function. This function allows you to provide either the currently logged in user, or the unique ID for any Atlassian Account. The results will be a list of Jira issues that were commented on by that given user. You can then add additional filters for the last Updated Date of the issue, which then will restrict based on the last time a Jira Issue has been updated.
Unfortunately, there is no way that I can find to link both, such that the filter returns issues where a comment was from a given time frame.
If this does work to achieve your goal, I would recommend saving this as a named filter to the system, and then using the Atlassian REST APIs to request the Jira Issue list using that named filter as the input.
I would recommend the Get Issues via JQL function here: https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issue-search/#api-rest-api-2-search-jql-get
If you want to avoid Python, you should also be able to use the Jira Filter Subscriptions feature to generate automatic reports on a given time frame. You can learn more here: https://support.atlassian.com/jira-software-cloud/docs/manage-filters/#Create-an-email-subscription-for-a-filter
Hope that helps!
Robert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.