You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi
I have a "multi Issue Picker" Field that contains issues, and a "CheckList" Field, I want copy or add issues in "multi Issue Picker" Field to "CheckList" Field as Item.
I wrote a code but has a below problem:
Cannot cast object 'xxxx-159' with class 'com.atlassian.jira.issue.IssueImpl' to class 'com.okapya.jira.customfields.ChecklistItem'
How do fix it? How do convert these classes to each other ?
Thanks
Hi Marzi,
I am a developer of Checklist for Jira and I'll help you find a solution.
You cannot simply take the value from one type of field and save it in another (unless they both store the same information!).
You appear to have a list of issues, and you want to add them to a list of checklist items.
Here's our ScriptRunner documentation on how to create checklist items and add them to the list.
You will need to loop over each value of the "multi issue picker" and create a checklist item for each of them. The item name could be the issue key issue.getKey() or the issue summary issue.getSummary().
If you need more guidance, it would help if you post your code so I can see what you are doing and provide the necessary changes to make it work.
Let me know how it goes!
Kind regards,
Maxime
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.