samples
turbot/flowpipe-samples/link-jira-issues
Get Involved
Version
License
Link Issues Across Jira
Search for related Jira issues using Jira Query Language (JQL) query. If there are any issues found, update their descriptions with the related issue numbers, but if none are found, create a new issue with the query details.
Installation
Download and install Flowpipe (https://flowpipe.io/downloads). Or use Brew:
brew tap turbot/tapbrew install flowpipe
Clone:
git clone https://github.com/turbot/flowpipe-samples.gitcd productivity/link_jira_issues
flowpipe mod install
Credentials
By default, the following environment variables will be used for authentication:
JIRA_API_TOKEN
JIRA_URL
JIRA_USER
You can also create credential
resources in configuration files:
vi ~/.flowpipe/config/jira.fpc
credential "jira" "jira_cred" { base_url = "https://test.atlassian.net/" api_token = "ATATT3........." username = "abc@email.com"}
For more information on credentials in Flowpipe, please see Managing Credentials.
Usage
Run the pipeline and specify the jira_project_key
, jira_jql_query
, and issue_type
pipeline arguments:
flowpipe pipeline run link_jira_issues --arg jira_jql_query="summary~Test" --arg 'jira_project_key=QWR' --arg 'jira_issue_type=Bug'