This article provides the code snippet to add a web link to an issue, using Build-your-own (scripted) Post-function (JMWE app) post-function and callJira filter.
Instructions
Navigate to the desired workflow transition and add the “Build-your-own (scripted) Post-function (JMWE app)” post-function.
Add the below Nunjucks template:
Code Block language java {{"/rest/api/2/issue/:issue/remotelink" | callJira(verb=("post"),params={"issue":issue.key},body={"object":{ url:"https://innovalog.atlassian.net/wiki", title:"Innovalog" } }) }}
...
Info |
---|
If this post-function is added on the create transition, select the checkbox “Delay the execution of this post-function” under “Delayed execution” and select a delay of 3 seconds. |
References
...