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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...