Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

read data from Excel and convert to JSON using groovy script in scriptrunner

sgole
Contributor
February 19, 2020 edited

i have readied  data from excel and store in List<List<String>> . the data is below .now i want to convert below data in json format ..how can i do that 

image.png

 

 

3 answers

1 accepted

0 votes
Answer accepted
sgole
Contributor
May 12, 2020

thanks . i have solved myself by referring below link,'

https://www.dev2qa.com/convert-excel-to-json-in-java-example/

0 votes
Mehhss January 7, 2024

May I ask how did you read the excel data from Scriptrunner using groovy script?

0 votes
Nic Brough (Adaptavist)
Contributor
March 3, 2020

I am slightly unsure of what you are trying to do here. 

Your first line of code is reading a .csv file and you want the output in JSON format, I understand that, but what does this have to do with a REST endpoint?

Perhaps if you could explain what you're trying to do overall, rather than think of a specific solution or function you think may help, we can better guide you?

sgole
Contributor
May 7, 2020

@Nic Brough (Adaptavist)  i have modified question please check

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, social impact bingo, may it forward, atlassian foundation, community engagement, atlassian community events, atlassian learning, social impact challenge, volunteering, community kudos, atlassian social impact, atlassian community

Come one, come all!

Hey everyone! Are you ready to make a difference? Join the Atlassian Social Impact Bingo event! ❌⭕

Play Bingo! 🙋🏻‍♂️
AUG Leaders

Atlassian Community Events