I have story workflow where I have this kind of post functions in create transition:
The following will be processed after the transition occurs
But only that tempo account field is copied from epic to story.
What I do wrongly with those fix version and component fields?
Bit more debugging info. It seems that it can copy only custom fields. I add one more postfunction to copy PSI release custom field and that works fine. So it can copy my own custom fields like account and PSI release, but can't inherit system fields like component or fix version. Is that a bug or feature?
Actually, what I believe is happening is that no field gets copied, but you are getting the default value for your custom fields.
The reason is that when the Create transition is executed for the User Story, the link with the Epic is not yet created (it gets created after the User Story is fully created, because Links cannot be created before the User Story gets a final issue ID). Therefore, the post-functions find no Epic for the User Story.
This problem has been reported before on our issue tracker.
No, there is not any default values for account or PSI release fields. Set Field Value From Linked Issue Function inherits those values. I tried that many times, and it really does that. And I tried that function also in other transitions (when that story already exists) and same happening.
After investigation, here is what is happening:
Apparently, the same limitation doesn't exist for custom fields.
My workaround solution for this:
In Epic workflow I have update stories transitions in every status. In that transition I run these posthooks:
In Story workflows create phase I have this posthook (after creates the issue oroginally posthook)
Now story gets fix version, component and account fields from epic when it is created.
I'm not sure is that so pretty, but it works.
Edit — workaround JIRA.png
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...
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
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs