Im trying out the “Post-Function Workflow - Clone Issue” function on a JSM Cloud project for a workflow transition.
First things first, cloning works like a charm!
Second... Can’t figure out how to set a request type on the newly cloned/created issue.
Im cloning the issue to another project and the new issue requires a request type to be displayed correctly. For now, the new issue has Request type: null…
Is it not possible to achieve this with Scriptrunners "Clone issue" in a Workflow Post-Function?
Edit: Figured out that an API request in the additional code snippet would probably do the trick, but i can't figure out how to fetch the key on the new issue.
The last line in the log of a cloning is...
INFO - Created issue: KEY-123
Is it possible to define "KEY-123" to a variable in the additional code?
As described in ScriptRunner for Jira Cloud - https://docs.adaptavist.com/sr4jc/latest/features/workflow-extensions/post-functions/built-in-post-functions
Under the "clone issue" - Step 13 stated "
In the Additional Code field modify the issueInput
structure before it is used as the POST body to /rest/api/2/issue
to create the issue. For example, add a label, set an assignee, or update the summary of the clone."
Hope this helps.
Best, Joseph Chung Yin
Jira/JSM Functional Lead, Global Technology Applications Team
Viasat Inc.
Viewed the instruction but can't figure out how to modify the request type.
Can you give me an example?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.