All Apps and Add-ons

Is it possible to configure multiple JIRA workspaces to my Splunk instance?

pparreno
New Member

Hello everyone,

I've been able to hookup an existing JIRA project with a Slunk Project. I've come across an issue now wherein I'm working on another separate project on a separate JIRA Workspace. Is it possible to configure my account to manage two JIRA workspaces and assign them granularly unto individual Splunk Projects?

Thanks!

Tags (3)
0 Karma

kcepull_splunk
Splunk Employee
Splunk Employee

I'm not sure if this is what you are looking for, but I've been able to modify the JIRA add-on to allow you to connect to multiple different JIRA servers by specifying a "server=XXX" parameter in the commands. E.g:
... | jira server=server1 filters ...
Let me know if you are interested in the code changes to do this.

0 Karma

pradeepkumarg
Influencer

Can you please provide more details on the code changes to achieve this?

0 Karma

kcepull2
Path Finder

Basically, what I did was modify the jira_rest.py script in the add-on to allow the passing of the "server" parameter from the SPL. If present, the value from the server= parameter is used to look up a stanza in the config.ini file. (If not present, it defaults to "jira" for backwards-compatibility.)

To do this, there were 2 places I changed the code:
1. I modified the setup_jira_service method to accept a parameter for 'server', which defaults to 'jira'. This is then used in the subsequent commands to retrieve the username, password, hostname, jira_protocol, and jira_port values from that stanze in the config.ini.
2. I modified the try block at the end of the script to look for a "server=" parameter in the SPL. If found, it extracts the value, and uses that to pass to the setup_jira_service method (see #1).

PM me if you would like a copy of the code.

Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...