Skip to content

Conversation

@britneywwc
Copy link
Contributor

@britneywwc britneywwc commented Oct 3, 2024

Done

  • Added /get-jira-tasks/<webpage_id> endpoint that returns an array of jira tasks, ordered by creation date

QA

QA steps

  • Go to pgAdmin and add data rows to jira_tasks manually
  • Example entry:
INSERT INTO jira_tasks(jira_id, webpage_id, user_id, status, created_at, updated_at)
VALUES(4, 2, 1, 2, CURRENT_TIMESTAMP - INTERVAL '1 day', CURRENT_TIMESTAMP)
  • Create a GET request to /get-jira-tasks/<webpage_id>
  • See that an array of jira tasks is returned, ordered by created_at
  • Example response:
[
    {
        "created_at": "2024-10-02 07:15:32.449506+00",
        "id": 8,
        "jira_id": "4",
        "status": "2",
        "user_id": 1,
        "webpage_id": 2
    },
    {
        "created_at": "2024-10-03 07:01:45.950817+00",
        "id": 4,
        "jira_id": "1",
        "status": "2",
        "user_id": 1,
        "webpage_id": 2
    },
    {
        "created_at": "2024-10-03 07:02:46.360292+00",
        "id": 6,
        "jira_id": "4",
        "status": "2",
        "user_id": 1,
        "webpage_id": 2
    },
    {
        "created_at": "2024-10-03 07:14:46.034713+00",
        "id": 7,
        "jira_id": "4",
        "status": "2",
        "user_id": 1,
        "webpage_id": 2
    }
]

Fixes

Screenshots

It could be helpful to provide some screenshots to aid in QAing the change.

@akbarkz akbarkz merged commit 90085ac into main Oct 4, 2024
7 checks passed
@akbarkz akbarkz deleted the jira-endpoint branch October 4, 2024 13:02
@github-actions
Copy link

github-actions bot commented Sep 5, 2025

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants