Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

ScriptRunner Read Description Field

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

Suggest an answer

Log in or Sign up to answer
0 votes
Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Feb 01, 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

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