Sidehistorik
...
Kodeblok |
---|
<div class="field-group aui-field-wikiedit comment-input"> <a href='' target='_self' id='templatenclone' class='aui-button aui-button-primary aui-style'>Click to Clone</a> </div> <script> AJS.$(document).bind(JIRA.Events.NEW_CONTENT_ADDED, function(event, dialog) { AJS.$('#templateclone').attr('href','https://jiramyserver.netic.dkdomain/secure/ClonePlusStart!default.jspa?id='+AJS.$('#key-val').attr('rel')); }); </script> |
Where the somewhat obscure code
Kodeblok |
---|
AJS.$('#key-val').attr('rel') |
Get the Issue ID in the database. Inprovements here could be nice!
Rendering on the "Incident Template" Screen, the Custom Field looks like (See Making a AUG like button):