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!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

 (view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...