Skip to main content
Question

SQL CREATOR, JIRA API and HTTP CALLER

  • February 24, 2020
  • 3 replies
  • 51 views

armando_amador
Contributor
Forum|alt.badge.img+4

I have a Maria DB and a JIRA platform, I would like to use the DB to create new issues there through the JIRA API, how can I integrate all of them?

 

I have already made the regular CRUD operations to the JIRA platform through the API using the HTTP Caller, but, how can I properly use the SQL Creator to use that data?

3 replies

david_r
Celebrity
  • February 25, 2020
Could you perhaps try and narrow down your question a little? It's fairly broad with not too much detail, so it's not an easy one to answer.

armando_amador
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • February 25, 2020
david_r wrote:
Could you perhaps try and narrow down your question a little? It's fairly broad with not too much detail, so it's not an easy one to answer.

Yes, I apologize for the very brief details:

I'm trying to use the data from certain tables contained in a non-spatial DB to create new issues in the JIRA platform through the use of its API which I have properly connected with HTTP Caller. As a sample, I would like to get some values from a MYSQL table called "Label" to this JSON sintaxis:

{    
"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",
"label" : "examplelabelnumber1",       
"issuetype": {          
"name": "Bug"       
}   
}

but I'm not quite sure how to call the value to this sintaxis.


david_r
Celebrity
  • February 25, 2020

So if I'm understanding you correctly, you want to read some MYSQL table and use the contents to populate a JSON document. Obviously this will depend on if it's a single MYSQL table or multiple tables that you have to join, but first thing to try is something like the following workflow:

<MYSQL reader> -- <JSONTemplater> -- <HTTPCaller>

There's a pretty good article about using FME to write JSON, see:

https://knowledge.safe.com/articles/44293/json-writing-overview.html

In particular, you may want to look at this article that showcases the JSONTemplater:

https://knowledge.safe.com/articles/44294/json-writing-with-jsontemplater.html

And the JSONTemplater documentation:

http://docs.safe.com/fme/2019.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/jsontemplater.htm


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings