Your second is correct: have the sub-task tell the parent to update its Description field to "This is an issue - clarification - blah blah blah"
The actual use case is to have a field called "change list numbers" and as each subtask is checked in an gets a change list number, the number is added to the parent. Thus in the end the parent has a list of all the changelist numbers that made up the change.
Just to clarify, do you mean like this example:
Parent issue has "This is an issue" in the Description field
Sub-task issue has "- clarification - blah blah blah" in the Description field
You wish to have the sub-task tell the parent to update its Description field to "This is an issue - clarification - blah blah blah"
? Or are you looking to replace the text? And does it have to be text, or can this be a field like "Multi Select"?
Thanks - this wouldn't work for text, but if someone else doesn't have an answer for exactly what you want, you can use JIRA Misc Workflow Extensions; it has a post function "Add Field Value to Parent" which will add the value of a multi-valued field into the same field in the issue's parent.
Hmm, I'm not sure - I guess the two things to worry about would be A) is there a limit on the number of options that can exist in a multi select field and B) is there a limit to how many of those options can currently be a value in the field when working with the issue. Maybe someone from Atlassian would be able to chime in on those?
I see that I can create a custom field of the "Label" type. (Missed it before because I only looked at the fields I had already created. Sorry.)
So, are you saying if I have this field in Stories and Subtasks, if I put one label in one subtask and another in another subtask I can get the workflow to put both into the Story?
If you install that plugin I mentioned above, and use that post function on a transition (in the sub-task workflow) , it will take the value(s) of the field you specify in the sub-task (in this case the Label custom field you end up making), and add them to the value of the field in the parent issue. So you'll need to make the custom field, add it to your screens for those issue types, and decide at what point(s) in the sub-task workflow that you want to add the values to the parent (maybe just when you're closing it, if you only want to do it once?).
Udo-no prob! :)
Seemed like a sound idea, but it didn't work.
Added the field 'Changelist Number New' to all types and I have this in the transation step:
"The value(s) of field Changelist Number New will be added to the issue's parent's field."
And I transition the subtask through it and fill in the field. The value is in the subtask all right, but doesn't show up in the parent.
|All||Conditions (1)||Validators (0)||Post Functions (8)|
Set issue status to the linked status of the destination workflow step.
Add a comment to an issue if one is entered during a transition.
The value(s) of field Changelist Number New will be added to the issue's parent's field.
The field Resolved by will take the value from Assignee.
The value(s) of field Resolved by will be copied to the issue's parent's field (replacing existing values).
Update change history for an issue and store the issue in the database.
Re-index an issue to keep indexes in sync with the database.
Fire a Issue Resolved event that can be processed by the listeners.
If you are adding the value of "Changelist Number New" to the sub-task in the transition screen used by the same transition where you are adding that same value from sub-task to parent, then you need to move the post function below "re-index an issue to keep indexes in sync with the database". Otherwise, you are telling it to add the value of the field to the parent before the value is really there.
OK, so I moved it down to the bottom, right above "Fire a Issue Resolved event..."
But it still didn't populate the field in the parent.
I can open the parent for edit, go to the field, and the number is available in the drop down. But it is not getting entered into the field.
I just tried it myself, you are correct - neither Labels nor a custom field of the type Labels is working - I guess they don't count as "multi select"? I am able to get the post function to work with other fields, such as Component and custom fields like Multi Select. It might be worth it to contact the plugin developers and ask them for a comprehensive list of what field types apply to the post function - I wasn't able to find one myself, unfortunately.
As a Belgian, beer-lover and home brewer, beer is one of my great passions. I love the fact that with just a few ingredients (usually just water, hop and malt) you can create so many different tastes...
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot