The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

ScriptRunner Read Description Field

Sarathi Chatterjee
February 1, 2022

Hi,

we want to parse the contents of a table using script-runner.

Any suggestion how we can do this please ? 

Thank you,

Sar.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Pramodh M
Community Champion
February 1, 2022

Hi @Sarathi Chatterjee 

Once you get the data from here

https://scriptrunner.adaptavist.com/latest/jira/behaviours-api-quickref.html#_getfieldbyname_fieldname

Parsing can be done via Groovy

May I Know the format of your data via screenshot or example?

Thanks,
Pramodh

Sarathi Chatterjee
February 1, 2022

Hey.

Thanks for the prompt reply.

The Data is in the Description field and is like below - 

COUNTERPARTYGROUPNAMEENPARENTTRADEDATECOMMISSIONRATERep変更前Bps
ABC GROUP 12342022/1/610pemji7

The first row is the header we want to extract each column value and create a sub-tasks for each row in the table  -that; the end goal.

So we were hoping to parse the above as text 

 

COUNTERPARTYGROUPNAMEEN|PARENT|TRADEDATE|COMMISSIONRATE|Rep|変更前Bps|ABC GROUP|1234|2022/1/6|10|pemji|7|

 

Thanks

TAGS
AUG Leaders

Atlassian Community Events