Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Jira issues inputs in addition to product releases #151

Merged
merged 3 commits into from
Jan 30, 2025
Merged

Add Jira issues inputs in addition to product releases #151

merged 3 commits into from
Jan 30, 2025

Conversation

hluk
Copy link
Member

@hluk hluk commented Jan 23, 2025

This will allow automated processing of Jira tickets based on specific JQL search query (thought there is currently no useful prerequisite to process the issues).

Additionally, it is possible to implement custom input classes.

Example rule:

- version: 1
  name: "Example Rule"
  inputs:
    - jql: >-
        project = EXAMPLE
        AND label=retasc-test-issue
        AND resolution is EMPTY
  prerequisites:
    - condition: >-
        jira_issue.fields.summary.startswith('[ReTaSC] ')
        and 'automatic' in jira_issue.fields.description
    ...

This change also simplifies managing issues using a unique label: ReTaSC will fetch the unique issue by single identifying label from Jira for each prerequisite. This means there are multiple Jira API queries, but it is much easier to understand then fetching a group of issues using a common label.

@hluk hluk requested a review from a team as a code owner January 23, 2025 13:32
@hluk hluk requested a review from zhanglu1122 January 23, 2025 13:32
Fetches the unique issue by single identifying label from Jira for each
prerequisite. This means there are multiple Jira API queries, but it is
much easier to understand then fetching group of issues using a common
label.
@hluk hluk merged commit e59c213 into main Jan 30, 2025
13 checks passed
@hluk hluk deleted the inputs branch January 31, 2025 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant