Hello,
On issue (<> epic) creation in a specific workflow I would like to set the project/customer value to the project/customer of the parent epic. so that when I create an issue in an epic, all issues inherit the project/customer information from the epic.
I succeeded to configure to set the project/customer to a specific value, but I don't see how to get the value from a parent element. (note that when you create an epic, project/customer is required and you can pick out from a list)
I tried by entering a smart value instead of a specific value (for ex. {{issue.epic.customfield_10056}} supposed to return the prj/customer of the parent epic - or {{issue.epic.Project / Customer}}) but no value is set.
Smart values are probably not meant for that. But how can I define the value in my post function?
Thanks
Hi Geneviève - Welcome to the Atlassian Community!
Can you share the rule that you have so far?
I first had to make the Project/customer field (or customfield_10056) visible for the type of issue. (we don't need to view it, it was enough to set the value in the background but it seems Jira won't set a value if it is not visible)
Adding a post function to set the Project / customer to value "customer X" works.
But I want to inherit the Project / customer from the parent epic of the issue. I tried like this, but it has no effect. (after publishing my workflow). {{issue.epic.customfield_10056}} did not work either, but smart values are probably not meant to be used here. What else could I use?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
putting the post function before the create (as help seems to indicate you need to do for custom fields) or lower in the sequence does not help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, I was under the impression that you were using Automation For Jira. I am not sure you will be able to do with post functions without using an add-on like JMWE.
But you would also do this with Automation For Jira which is now a free tool. See this for more information:
There are two types of automation:
Automation Basics: https://www.atlassian.com/software/jira/guides/expand-jira/automation
You can do this via global rules to apply to all projects also. You'll need to be a Jira Admin/Site Admin, go to Jira Settings > System > Automation Rules (left-hand menu).
For more on using Automation For Jira see these help pages.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi John, thanks for this input. I could set up an automation rule to do the trick :-)
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.