Skip to content

marcelorxaviers/jira_xbarapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

JIRA xbarapp

Script to fetch information from JIRA and send it to xbarapp. The current version takes information from specific servicedesk queue.

Table of contents

Configuration

Ruby installation

The script requires ruby (2.6.8+). You can find installation instructions here.

Install xbarapp

Follow the instructions in their site.

Create JIRA token

Go to token creation's page and do it.

Set environment variables

In order to do that, you need to create a file inside the plugins folder with the same name of your script file ending with the vars.json extension, eg, jira-attendance-support-tickets.1m.rb.vars.json

The content of the file should be like:

{
    "JIRA_API_TOKEN": "JIRA_API_TOKEN_HERE",
    "JIRA_USER_EMAIL": "EMAIL_USED_IN_JIRA"
}

Substitute the email value for your JIRA email address and the token for your own JIRA token value.

Adapt script

The script is fetching tickets from queue 18 at servicedesk 1. You gotta change that accordingly:

queue = JiraClient.new.get_queue(servicedesk_id: 1, queue_id: 18)

Make script executable

In macos you can do the following:

chmod a+x PATH/jira_script.rb

Change the PATH to the directory path where you did clone the project into.

Link script to xbarapp

In macos you can do the following:

ln -s PATH/jira_script.rb XBAR_PATH/xbar/plugins/jira-attendance-support-tickets.1m.rb

Change the PATH to the directory path where you did clone the project to.

Change the XBAR_PATH to the directory path where you did install your xbarapp.

Refresh xbarapp

Left-click the xbarapp and hit Refresh all in the xbar menu;

Execution screenshots

No tickets to solve

image

Tickets in progress

image

Tickets waiting for customer

image

Has tickets to solve

image

About

Xbar script to access JIRA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages