Six Stars

TRest question

Hi everybody !

 

Before to continue my work, I would like to know if I am in the good direction.

 

I am working with Talend / Jira to import Trello history. I would like to import comment from history especially.

 

Via the software Insomnia :

image.png

I succeed to import comment in Jira issue.

 

But with Talend I am asking myself how to do. I feel like using a TREST component.image.png

 

I don't succeed to link "trest" and "tfileinputdelimited".

I want to put in the body of trest ('cause the request is "post" type) :

 

"body": "HI Anabella",
	"visibility": {
		"type": "role",
		"value": "Administrators"
	},

with basic authentification :

image.png

 

And as "header", the following :

image.png

 

I would like advice about the way to do.

 

Thanks,

2 REPLIES
Moderator

Re: TRest question

 

Hello,

The tRest component is used as a REST Web service client to communicate with a REST Web service provider. It must be linked to an output component.

Do you want to invoke a REST API to load data to a third party provider? Please take a look at tRestClient component.

Best regards

Sabrina

 

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Six Stars

Re: TRest question

Hi Smiley Happy,

 

Yes, typically I have this job :

 

image.png

 

From the tFileInputDelimited( JSON file), I want to pass the data throughout a tRestClient e.g. :

 

{
"fields": {
    "project": {
        "key": "TRL"
    },
    "summary": "A",
    "description": "B",
    "issuetype": {
        "name": "Task"
    },
    "labels": ["Webapp"],
    "reporter": {
        "name": "x.x"
    },
    "assignee": {
        "name": "x.x"
    }
},
"body": "TEST1",
"visibility": {
    "type": "role",
    "value": "Administrators"
}}

After, I want to make use of JIRA API cloud reference (https://tinyurl.com/y924m3ng) to get the different data for a Jira issue.

 

Is my idea is good and the choice of the componants too ? Please tell me ? I am trying to configure the different componants now.

 

Alexandre