Six Stars

Put automatically a JSON file on one line for a componant Jira output

Hi,

 

During my searching, I would like to know if there is a tool in Talend to transform automatically a json file (indented on many lines) to a json file with "only one" line in order to work it with the Jira output.

 

Thanks in advance,

 

Alex

  • Data Quality
2 REPLIES
Moderator

Re: Put automatically a JSON file on one line for a componant Jira output

Hello,

Could you please elaborate your case with an example with input and expected output values?

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: Put automatically a JSON file on one line for a componant Jira output

Hi, yes sure !

 

For instance, I would like to transform this file :

 

{
	"fields": {
		"project": {
			"key": "TRL"
		},
		"summary": "ALEX IMPORT A TASK",
		"description": "ALEX IMPORT A TASK",
		"issuetype": {
			"name": "Bug_webapp"
		}
	}
}

to one line automatically :

 

{ 	"fields": { 		"project": { 			"key": "TRL" 		}, 		"summary": "ALEX IMPORT A TASK", 		"description": "ALEX IMPORT A TASK", 		"issuetype": { 			"name": "Bug_webapp" 		} 	} }

Because now I have to use, everytime, manually the shortcut ctrl + J to join the content of the file on one line to prepare this JSON file for the outputJiraComponant.

 

Have you got any ideas ?

 

Best regards