Giter Club home page Giter Club logo

jiranl's Introduction

JIRA-NL

jirnal

JIRA-NL is a little python script that uses ChatGPT to add natural language capabilities to JIRA, specifically in the context of creating JIRA issues.

Dependencies

The script uses the requests, openai and termcolor python packages, make sure to install them using the following commands before running the script

pip install requests
pip install openai
pip install termcolor

Setup

To work properly, start by configuring your JIRA email address, API token and workspace name, as well as the OpenAI API token in the jiranl_consts.py file, after configuration it should looks something like this

JIRA_API_KEY = 'xxxxxxxxx'
OPENAI_API_KEY = 'xxxxxxxxx'
EMAIL = '[email protected]'
JIRA_WORKSPACE = 'johndoe' (i.e. the first part of the atlassian domain, e.g. https://johndoe.atlassian.net)

Usage

Create An Issue

To create an issue, simply call the script with a string description of your issue, you can assign the issue to users using their account ID

python3 jiranl.py "Create an issue named 'Login button is broken' assign it to 5c0bb5b48bb9b546bbb4b827"

Get User/Project IDs

Passing users or projects will print project/users along with their identifiers

$ python3 jiranl.py users

1) Mike Mclean (5b0bb5b48bbb9b546efc4b827)
2) Freddy Jacobson (5b0bb5b48bbb9b546efc4b827)
3) Kara Mcbride (5b0bb5b48bbb9b546efc4b827)

Pro Tip: you can use a Raycast script command to run script using Raycast

License

Copyright 2023 Itamar Biton

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

jiranl's People

Contributors

itamarbiton 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.