Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hello everyone
I want to use Jira automation to edit values in the Task.
That is what i have configured.
My Epics do have both values and i dont get any error message in the Jira Automation Log, still my Tasks (which are linked to the Epic) do not have any value in COmponent or Security Level.
Any idears what im doing wrong ?
Thanks in advance!
@Sara Watson did you solved this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
{
"update": {
"components": [
{{#issue.epic.components}}
{ "add": {"name":"{{name}}"} } {{^last}},{{/}}
{{/}}
]
}
}
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.
Thanks @Börge Zuber !
The only comment to future readers is that when setting up the Edit issue step, don't select Components from the list, just paste the script into the container that appears after clicking on More options.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Sara Watson and @Kashif Ansari
Thank you for reaching out.
Some smart values changed since my last answer. Please. try the syntax below as mentioned in this documentation:
{{issue.epic.
customfield_10001
}}
{{issue.epic.
components
}}
If it does not work, please ensure the field you are trying to edit is properly added to the edit issue screen of both parent and child issues.
Let us know if you have any questions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Petter Gonçalves This is still not working for me. Is there more that needs to be added to the JSON to tell it to copy the field from the epic to the child issue (using "fields" or "update" maybe)? The error message I received this time said "Error while parsing additional fields. Not valid JSON.". See screenshot below of the rule as it exists now.
The custom field I am using in this case is "Team", which was setup in the project plan. I used <https://projecturl/rest/api/2/issue/issuekey?expand=names> to verify the custom field ID.
The Team is set in the epic but not in the child issue. The goal is to automate that selection so that anytime we are creating an issue from the epic, the child issue takes on the Team as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
I have a similar problem as Sara, I need to update the child's component based on the parent component. I am looking for a smart way to do this. if someone knows how to do this please share.
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Fabian,
These fields do not have a proper form control yet on Automation for JIRA plugin, so they can not be edited like you are trying to do, however, you can configure them using a valid JSON object in the advanced form under More Options, as described in the documentation below:
To achieve your need, you will need to use Smart values to add the proper security level and Component to your epic by using the following parameters:
{{issue.parent.epic.security}}
{{issue.parent.epic.components}}
Please, check both documentation sent and let me know if you were able to configure the Automation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am trying to do a similar thing. Whenever an issue is updated, I want the automation to check the issue's epic component. If the epic's components field contains Technical then I would like to update the given issue's components field with that of the epic.
Here is what I am doing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Petter Gonçalves can you help me with the Advanced Field Editing for the following:
When: Issue Created
Then: Edit Issue Fields (Copy customfield_10001 from epic}
The closest I have gotten (as in, not an error message that it's not a valid JSON) was
{{issue.parent.epic.customfield_10001}}
but even that returned an error of : No fields or field values to edit for issues (could be due to some field values not existing in a given project).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register Now
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.