Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can you help with behaviour on service desk to populate fields on form using existing issue

Nicole Downes
Contributor
February 16, 2020

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.

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Craig Nodwell
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
July 13, 2022

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

TAGS
AUG Leaders

Atlassian Community Events