Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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


1 badge earned


Participate in fun challenges

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


Gift kudos to your peers

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


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!


get jira story by python

I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Oct 19, 2023

how can I get jira story under the epics by python  jira

1 answer

0 votes
Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 22, 2023

Hi @Yuuki 

Welcome to the Community!

To retrieve Jira stories that belong to a specific epic using Python, you can use the jira Python library. Here are the steps;

  • Install the  Python library:
    pip install jira
  • Import the library and authenticate with your Jira instance:
    from jira import JIRA

    jira_url = 'https://url-to-your-jira-instance'
    jira_username = 'username'
    jira_password = 'password'

    jira = JIRA(jira_url, basic_auth=(jira_username, jira_password))
  • Assuming you want to retrieve stories under the epic ABC-123
    epic_key = 'ABC-123'

    jql = f'"Epic Link" = {epic_key}'

    issues = jira.search_issues(jql, maxResults=False)

    for issue in issues:
    print(f'Key: {issue.key} - Summary: {issue.fields.summary}')

I hope this helps

Suggest an answer

Log in or Sign up to answer