Clone only issue in a specified step of WF

Hello

I would like to ask you a question. It is possible, to enable make a clone of an issue type, only when the issue is in a step Approved(my own defined step Approved)?

Thank you wery much

3 answers

1 accepted

This widget could not be displayed.

How to use clone properties for customization shows how to customize the Clone Plus Plugin for JIRA. Specifically, you can condition a clone operation to only show up based on project, issue type, and status.

# When does this action show on UI? Only for project ZCLONE bugs (id = 1) in resolved (id = 5) state
1.condition.ZCLONE.1.5 = true

Multiple conditions can be specified or generics used.

thank you, i used that plugin

Some could use this link - how to get IDs of issue types https://confluence.atlassian.com/display/JIRA/Finding+the+Id+for+Issue+Types

This widget could not be displayed.

Set this script in the annoucement banner, adjust the status string as per your requirement.

<script type='text/javascript'>
AJS.$(document).ready(function() {
    var status = AJS.$("#status-val").find('img').eq(0).attr("alt");
    if(status != 0 && status != "Open") {
        AJS.$("#clone-issue").hide();
    }
});
</script>

This widget could not be displayed.

I would sugest to disable Clone operation using permission scheme and provide Clone workflow action using built-in postfunction in Script Runner plugin. This Clone action would be available only in given state.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

52 views 0 1
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you