xl8bot
1
Originally asked by Andrey Miranda on 27 January 2020 (original question)
I have a project on Jira cloud and another project on Jira server.
I need to sync a custom field { Select List (cascading) } I try with some different scripts and I don’t have a good result.
If Do you have some suggestion I appreciate it?
Thanks
xl8bot
2
Answer by Andrey Miranda on 30 January 2020
Good afternoon,
I tried with your recommendation but I don’t have good results.
Also, I was checking this solution (https://docs.idalko.com/exalate/display/ED/Sync+between+Cascading+Select+and+Text+custom+fields) and i had the next result Phone extension is the custom field in the project that i need to sync
if you have any suggestion I appreciate it
Thanks
xl8bot
3
Answer by Andrey Miranda on 27 January 2020
Thanks, I going to check the information
xl8bot
4
Answer by André Leroy-Beaulieu Castro on 27 January 2020
Hi Andrey,
Take a look at the following documentation:
https://docs.idalko.com/exalate/display/ED/Syncing+cascading+select+custom+fields
https://docs.idalko.com/exalate/display/ED/getCascadingSelect
def parent = nodeHelper.getOption(issue, "Destination Region/Country", "Europe")
issue.customFields."Destination Region/Country".value = nodeHelper.getCascadingSelect(
parent,
parent.childOptions.find{it.value == "Belgium"}
)
issue.customFields."Destination Region/Country".value = nodeHelper.getCascadingSelect(
nodeHelper.getOption(issue, "Destination Region/Country", "Europe"),
nodeHelper.getOption(issue, "Destination Region/Country", "Belgium")
)
These approaches should both work correctly.
Let me know how it goes!
Thanks,
André
Comments:
Andrey Miranda commented on 03 February 2020
I was checking the first link again, and I found what is the problem, this solution is perfect
thanks for your suggestions