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.
Hi @Scott Theus the routines for the calculations would be exactly the same. The big differences are how you get or put the issue object. Have a look at the Scriptrunner Library specifically for cloud examples on getting the issue object, And there's some posts on gathering date/time details on statuses using the java date utils that wouldn't change
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.