I'm attempting to use the post functions to populate fields in a subtask. I have several that are working fine (epic link and sprint) but I have three (components/labels and fixed version) that will not inherit. Any ideas on why?
Hi Renee,
How are you managing the inheritance? Are you using an app for this? If yes - which one?
The fields you've mentioned are a little special and may require a specific technique or method of writing in order to inherit them.
BR,
Tanya
I'm using post functions on the create transition on a sub-task to pull in the fields from the parent task. I have the JMWE add-on - where I make the selections below for each field I want to pull into the sub-task screen. For some reason epic link and sprint work fine. Component/s, Fix Version and Labels do not.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Renee,
May I know which version of JMWE are you using? Can you activate Error logging (you will be notified of errors immediately) in one of the post-functions, save it, publish the workflow and retry.
Regards,
Radhika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Our system is set to notify admins when there is an issue with post functions. Log analyzer found no errors and no notification has been sent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Renee,
I just tried on the same version and it works fine. Are you sure you added the post-function to the "Create" transition of the sub-task workflow? Have you published the workflow? Please recheck. Also, the Sprint field is not being set by the post-function but being inherited from the parent (this is by the design of Jira).
Regards,
Radhika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I'm sure I did. I'll do more testing. Including removing the sprint post function to see if it still populates.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It looks like epic link isn't available at all. Interested in how you were able to make that one work. I removed sprint from the wf post config and that worked fine.
Component/s and Fix Version shows up after you save the sub-task issue. I still cannot get labels to display.
This is my task
this is my sub task creation screen
After creation
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Renee,
JMWE post-function performs an operation after the transition completes. And hence you see the values after the sub-task was created. The Epic link field is not applicable to subtasks because you cannot add an Epic to a subtask. You can try adding manually to see this error. So we are left with the "Labels" field now. Which version of Jira are you using?
Regards,
Radhika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Renee,
you probably want to remove the "Epic Link" and "Labels" fields from the sub-task creation screen, because the first one doesn't apply to Sub-tasks, and the second will be replaced by the post-function so it'll be confusing for users.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, as soon as I saw the error I removed those fields completely. :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Renee,
Were you able to fix the problem? Are you still not able to copy the Labels field from the parent to the Subtasks? Let me know.
Regards,
Radhika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Renee,
Can you move the post-function before the "Creates issue originally" post-function, publish the workflow and retry. Let us know if it fixes the issue.
Regards,
Radhika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It has an error if you put it before create. That's why I moved it originally.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Renee,
You moved the post-function for "Fix Version/s". Yes though it shows an error, in 7.2.3 version of Jira it should copy the "Labels" from the parent. Try and let us know. I suggest you raise a support request with us here: https://innovalog.atlassian.net/servicedesk/customer/portal/8 so that you can share more information there (short video or workflow XML etc) with us to debug the issue.
Regards,
Radhika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, I was able to get this to work correctly. Apparently I was copying "TO" the parent and not "from" the parent. After I testing your fix above I noticed it was removing my label from the parent. Then I went it and reconfigured it. It is working now.
Thanks you for your help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Renee.
As an alternative, you may install JSU that does not require any coding.
Post functions will operate after the create screen. There you can copy other fields to the sub-task. But be careful about the sequence. Read more about this in the documentation: https://confluence-apps.beecom.ch/display/JSU/Workflow+Post-Functions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.