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

JiraIssueParameter in pipelines #620

Open
mmolinac opened this issue Oct 10, 2024 · 0 comments
Open

JiraIssueParameter in pipelines #620

mmolinac opened this issue Oct 10, 2024 · 0 comments

Comments

@mmolinac
Copy link

What feature do you want to see added?

We can currently only use the Jira Issue Parameter in non-pipeline jobs.
It would be nice to also be able to use them in pipeline jobs so we can migrate old freestyle jobs (or remaining parameters) to new, full pipeline jobs.

pipeline {
    agent any

    parameters {
        jiraIssue description: 'The JIRA Issue related to this staging environment.', JQLSearchQuery: 'project = PRJ AND status in ("Implementing", "Open", "testing") ORDER BY id DESC', jiraAlternateSummaryFields: '', name: 'JIRA_ISSUE'
    }

    stages {
        stage('Orchestrate environment for ticket') {
            steps {
                echo JIRA_ISSUE
            }
        }
    }
}

Upstream changes

No response

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

No branches or pull requests

1 participant