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!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...