Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Data import from AlienVault Central via REST API

I have some data in AlienVault central How can I pull data from AlienVault central via REST API and put it into jira? Has anybody done such activity? 

1 answer

1 accepted

Hi Rohan,

 

You can use the Jira Rest API to create issues using AlienVault Webhooks. 

Another way is using Rest Endpoints (Use Script Runner to Create it).

Request

curl \
   -D- \
   -u charlie:charlie \
   -X POST \
   --data {see below} \
   -H "Content-Type: application/json" \
   http://localhost:8080/rest/api/2/issue/

 

Input data
{
    "fields": {
       "project":
       {
          "key": "TEST"
       },
       "summary": "REST ye merry gentlemen.",
       "description": "Creating of an issue using project keys and issue type names using the REST API",
       "issuetype": {
          "name": "Bug"
       }
   }
}

Hi Lucas,

Aah..Thank you for the answer! Webhooks solution is clear.

The AlienVault data can be accessed via Rest API. So, by second option, do you mean I should create a script which keeps on polling the AlienVault data? Say after every half an hour to get new data by creating JIRA REST requests for new data? I am sorry, I have no knowledge about Alien Vault.

Rohan,

 

In the second option you have to create a web service on Alien Vault to send the data to Jira, it's like a webhook but you can personalize it. 

 

Like rohan sharma likes this

Okay, understood. I thought of something else :)
By the way, I think of two more solutions.

 

  1. A script to poll data (as I explained in above comment) and create rest requests every half an hour from AlienVault side. I know this is little old school. but can this be done with Jira?
  2. Configuring mail receiver in JIRA which receives mails from AlienVault and creating a mail handler, which will in turn create or update issues. Saying this because AlienVault generates mail alerts, which have to be read and fed into jira system.

Sorry for taking lot of your time. But, whats your take on these two?

Regards

Rohan,

 

Those are two great solutions, i think the option 1 is the best, but 2 is a good idea if you are using jira service desk or script runner. 

 

It's no problem, you can ask me when you want. 

 

i'm happy to help you !

:)

Like rohan sharma likes this

Thanks Lucas for your time and quick responses! Cheers!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Software

How to create Jira issus from Excel file?

When to use CSV importer When managing your processes in Jira, there are many occasions where you need to create a lot of tasks. Creating them one by one will cost you a lot of time and effort and i...

4,528 views 22 32
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you