Coder Social home page Coder Social logo

jira-issue-details's Introduction

Jira Issue Details

Find issue title and type name with key.

Example action:

on:
  push

name: Test Transition Issue depends on issue type

jobs:
  test-transition-issue:
    name: Transition Issue
    runs-on: ubuntu-latest
    steps:
    - name: Login
      uses: atlassian/gajira-login@master
      env:
        JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
        JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
        JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
        
    - name: Find issue details
      id: issue
      uses: byunguk/jira-issue-details@main
      with:
        issue: LLP-689

    - name: Print issue title
      run: echo "Issue title is ${{ steps.issue.outputs.title }}"

    - name: Transition issue(Story)
      if: steps.issue.outputs.type_name == 'Story'
      uses: atlassian/gajira-transition@master
      with:
        issue: LLP-689
        transition: 'Done'

    - name: Transition issue(Bug)
      if: steps.issue.outputs.type_name == 'Bug'
      uses: atlassian/gajira-transition@master
      with:
        issue: LLP-689
        transition: 'Resolve'

Action Spec:

Environment variables

  • None

Inputs

  • issue (required) - issue key to perform a transition on
  • escape_single_quote - escape single quote for bash shell (default: true)

Outpus

  • title - issue title
  • type_name - issue type name

Reads fields from config file at $HOME/jira/config.yml

  • JIRA_BASE_URL
  • JIRA_USER_EMAIL
  • JIRA_API_TOKEN

Writes fields to config file at $HOME/jira/config.yml

  • None

jira-issue-details's People

Contributors

byunguk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.