Our new Appfire Documentation Space is now live!

Take a look here! If you have any questions please email support@appfire.com

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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

  1. Navigate to the desired workflow transition and add the “Build-your-own (scripted) Post-function (JMWE app)” post-function.

  2. Add the below Nunjucks template:

    {{"/rest/api/2/issue/:issue/remotelink" | callJira(verb=("post"),params={"issue":issue.key},body={"object":{
      url:"https://innovalog.atlassian.net/wiki",
      title:"Innovalog"
    } }) }}

With this, the URL "https://innovalog.atlassian.net/wiki" will be linked to the current issue, with the title "Innovalog" - modify them as per your use case.

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

  • No labels