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

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

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

r u getting any error? if yes share it

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 vote

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.

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

Ganga S

0 vote

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

Hi James,

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

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

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

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

David

do you have any update for this?

Thanks

Federico

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.

Is this already solved in the latest release?

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

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

Can you give some hints on that "fiddling"?

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

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Apr 19, 2018 in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

366 views 0 6
Read article

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