How to copy the Parent issue "Labels" field value to a sub-task "Labels" field via workflow transaction?

Ganga_Selvarajah December 14, 2011

Hi,

I am facing an issue to set the value of a field from the issue parent by using a following post function “Set Field Value from Parent “ to workflow transaction.

The post function “Set Field Value from Parent” is working for all other jira fields (including custom fields), but it is not working for “Labels” field.

What I am trying to achieve, I wanted to copy the Parent issue “Labels” field value to a sub-task labels fields.

JIRA version: 4.4.3

Misc Workflow Plug-in version: 2.4.1.

Thanks

Ganga S

6 answers

1 accepted

1 vote
Answer accepted
PauloP
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.
October 11, 2012

Hi guys

I've found the following BUG record from Atlassian system. Please let's vote for this increasing the bug fix importance.

https://jira.atlassian.com/browse/AOD-5913

Cheers,

Paulo Renato

0 votes
David _old account_
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.
April 1, 2012

Sorry about that. Although Label-type custom fields were supported, the built-in Labels field wasn't...

I've now fixed that for the next versions (see https://studio.plugins.atlassian.com/browse/JMWE-83)

David

Federico Spagnolini June 7, 2012

David

As On Demand customer i really have no way to force the upgrade of the component. Can you please force the release of the plugin and send it to Atlassian guys to speed up the process?

Thanks for your help

Federico

Federico Spagnolini July 25, 2012

David

do you have any update for this?

Thanks

Federico

David _old account_
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.
July 25, 2012

No. Unfortunately, I couldn't release the Jira 5.1-compatible version of JMWE in time for the Jira 5.1 release. So I don't know when the next pgrade train will be...

David.

Wim Van Hoecke February 18, 2014

Is this already solved in the latest release?

I can copy components at subtask creation, but not labels.

David _old account_
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.
February 18, 2014

It is. But labels are special, and thus might need some fiddling with post-function order when using the function in the Create transition.

Wim Van Hoecke February 19, 2014

Can you give some hints on that "fiddling"?

David _old account_
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.
February 20, 2014

You might need to move the post-function to after "Create the issue originally".

0 votes
tier-0 grump
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 15, 2011

I've just gone and checked the source code for 2.4.3 , and it has been fixed there as well, even though the fixVersion is flagged as 2.5.0, so give 2.4.3 a try, which does work in 4.4.3

Ganga_Selvarajah December 17, 2011

Hi James,

Still I am getting same error, if I try 2.4.3 with JIRA 4.4.3.

Federico Spagnolini April 1, 2012

Hi James,

I've originally opened the https://studio.plugins.atlassian.com/browse/JMWE-83. I'm on 2.5.1 (AOD) but I don't think tha the solution is really available.

I've also commented the issue.

Federico

0 votes
tier-0 grump
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 15, 2011

Thi is a known problem in 2.4.1 of the JMWE, see https://studio.plugins.atlassian.com/browse/JMWE-83.

The good news is that it is fixed in version 2.5.0, so you should be able to get the new version and fix your problem.

Ganga_Selvarajah December 15, 2011

thanks for the update.... unfortunately 2.5.0 wont support JIRA 4.4.3 or 4.4.4.

Ganga S

0 votes
Ganga_Selvarajah December 15, 2011

I cam gettign an Issue field "labels" is not supported error message.

Thanks2011-12-16 11:46:18,869 http-8090-2 WARN ganga.selvarajah 706x1817x1 1anymq2 10.253.5.45 /secure/GHCreateNewIssue.jspa [googlecode.jsu.util.WorkflowUtils] Issue field "labels" is not supported.
2011-12-16 11:46:18,869 http-8090-2 WARN ganga.selvarajah 706x1817x1 1anymq2 10.253.5.45 /secure/GHCreateNewIssue.jspa [jmwe.plugins.functions.CopyFieldValueFromParentFunction] Error while executing Copy

Field Value to Parent function: java.lang.IllegalArgumentException: [GenericEntity.get] "labels" is not a field of Issue
java.lang.IllegalArgumentException: [GenericEntity.get] "labels" is not a field of Issue

Ganga S

0 votes
RambanamP
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.
December 14, 2011

r u getting any error? if yes share it

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events