Advanced Post function in a workflow

Tamar Israel November 13, 2018

Im trying to add advanced post function to my workflow.

For example- upon a specific transition- I would like the issue to be duplicated in a different project. 

 

Any ideas on how to do it?

4 answers

4 accepted

0 votes
Answer accepted
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 14, 2018

We use the JMWE (JIRA Misc Workflow Extensions) add-on to perform that function. And you don't have to write code!

Tamar Israel November 14, 2018

Hi,
Thanks for this !
Does it allow you to change any fields in the issue duplicated? 
assign the new ticket?

create any rules that affect the primary issue?

For example, transition an issue based on the status of the subtask opened.

So upon a specific transition a new ticket is created- duplicating all fields. and upon this sub tasks completion the previous one is transition once more to c new status. 

Sorry if its too much just wanted to explain the scenarios Im trying to create....

 

Thanks,

Tamar

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 15, 2018

Yes, there are lots of options for populating other fields. For example, we use it to clone a recurring need ticket and set the Due Date on the new ticket to be a month out or a year out or whatever. 

0 votes
Answer accepted
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 14, 2018

Another addon to try - Automation for Jira there is also a lite (free) version. 

0 votes
Answer accepted
Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 14, 2018

HI @Tamar Israel

Welcome to the Community!

You can not do this using inbuild post function but you can find similar functionality add-ons on marketplace using which you can clone the issue on across jira project.

0 votes
Answer accepted
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 14, 2018

Hello,

You would need a plugin for it.

For example, you could use the Power Scripts plugin:

https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation?hosting=cloud&tab=overview

You could write a post function with a code like this:

string issue_priority;//Possible values: "Major", "Critical" etc.
string issue_description;
string[] issue_components;
string issue_security_level;
string[] custom_fields_mapping;


issue_priority = priority;
issue_description = description;
issue_components = components; //an array containing all the components of the current project
issue_security_level = securityLevel;
custom_fields_mapping = "STDUP|fmanaila|STDGP|jira-users";
string k = createIssue(
"PROJECT",
"",
"Task",
summary ,
issue_priority,
issue_description,
issue_components,
currentDate() + "30d",
"1h 30m",
issue_security_level,
custom_fields_mapping
);
linkIssue(key, k, "Duplicate");

Suggest an answer

Log in or Sign up to answer