We create an issue using a recruitment request on the Service desk. This issue contains data such as job title, start date, office, business unit, etc.
I would like to populate the same fields in our Onboarding request in the Service Desk using the information already entered on the recruitment request.
I have created an Issue Picker scripted field to allow the user to select the correct recruitment request.
I have been advised I need to use the behaviours getValue() method with the issueManager.getIssueByCurrentKey("issuekey") method to get the issue object. But I just don't know how to structure up the script to achieve it.
Can someone provide a sample of how this would be achieved. Please include all imports and definitions as well.