I would like to create an automation that once specific field is changed to Yes a new Story is created and the mandatory fields which are Epic Link and Team are copied from the triggered issue. I've succeeded with the Epic link but Team field is not found and I need to add a Json, I've tried few options but nothing works. Can someone please advise how the Json should look like? The example below is not working I'm getting the following: Error while parsing additional fields. Not valid JSON.
I've also tried and it failed:
"fields": {
"customfield_12300" : issue.customfield_12300
}
But when I gave a specific team number it worked :
{
"fields": {
"customfield_12300": "39"
}
}
You found the resolution yourself.
This needs to happen via JSON and you need to specify the ID of the Team
@Marc - Devoteam MY solution is not good, I don't know what will be the team, I need it to copy it from the triggered issue (The RFE). The teams can be different.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This will do the trick I think.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Marc - Devoteam Thank Marc for your help, I've implemented your fix (beside that I've choose Story and not same issue type cuse they are different issue types) and I'm getting the attached error. Any idea why?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are missing a } at creating the variable.
The right input is:
{{issue.customfield_10001.id}}
Make sure that the Team field in you instance has the id 10001. I think it will as I think this is the default id value for field team.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Marc - Devoteam opps u r right - I fixed it -but still getting the same error. I've tried also with customfield 12300 (cause it works for me for team in another automation) but still the same error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I see you team field has the ID: customfield_12300 from your original post and there is an error in the json
You missed the closing quote " after "{{team}}
I think your json should look like this:
{
"fields":
{
"customfield_12300": "{{team}}"
}
}
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,
Why we need to "Re-fetch" and then create a variable which has the smart-value of {{issue.customfield_12300.id}}??
Why can't we use the smart-value {{issue.customfield_12300.id}} directly in JSON when copy Team to Team:
{
"fields":
{
"customfield_12300": "{{issue.customfield_12300.id}}"
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As the requirement for this request is the value of the trigger issue.
If you use the option you are suggesting the field will be empty.
The new issue needs the same Team field value as the trigger issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Marc - Devoteam At the end I changed the logic in my automation and I've used Components field instead of Team (which exist in the custom fields list so it is easier ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe the solution might be as simple as making sure that the custom field is available in your project type and is associated with your project? Once you do that you should be able to see it in your drop down menu in automations.
This article regarding editing a custom field context might help you edit it so that is shows and is a selectable field within your automation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The Team field is not available in the field dropdown in automations even if available in your project.
This is a know topic, the same applies to Epic Status.
These fields can only be addressed via a JSON statement in using more options in an automation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Marc - Devoteam Well that is odd because I am able to access it in automation. And...even better....custom fields that I have created can be selected in Automation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The default advanced roadmap team field is a fiedl created by Atlassian.
This field is visible within the custom fields (all system created or app created fields and self created).
The Team Field is a locked field and of the Type Team, this type of custom field can't be created.
See:
The screen you show looks like a self created custom field, named Team. Am I correct on this assumption?
The above shown field is only usable within a JSON clause in an automation
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is not a field that we created. It says it was generated by Jira and is locked for editing.
And it is the only field labeled Team in our instance of Jira.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What subscription of Cloud do you have on a standard I also have the field team, this is related to the teams you can setup in the Teams section in the toolbar.
The Team field I and Sari are referring to is related to Jira Advanced Roadmap, this requires a premium cloud subscription.
The Team field then is only usable in automation .
I have tried to use Team in an automation on standard and that works and I have tried it on premium and then it doesn't work anymore.
So this has to do with the addition of Advanced Roadmap.
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.