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

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

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>

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Uncategorized

Friday fun: how many celebrates Midsummer holiday or is this a Swedish tradition only?

Any other country that celebrates Midsummer holiday (this friday 22 June)?  

44 views 3 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