Hi,
I'm trying to put a name into the Team field. We are using Data Center v.9.13 and in the Jira Software Project the Team field is not in use. But I use it in my Plans (Advance Roadmap) where I have established a Team.
I want to automate, when a story is created (or pulled into the "In Work") automatically to add the team name, which I whant to use into my Plans project. So this Team Field is irrelevant for the Jira Software procjet, and I want to use it only in Plans.
I have tried the following:
{
"fields": {
"customfield_10201": "{{issue.team}}"
}
}
where "customfield_10201" I found it through the rest api. Also the Id is. 135:
But as a result in Plans I don't receive anything. I also created a Log Action: Team: {{issue.Team}}, and Team: {{issue.customfield_10201}}, but nothing is comming here.
If I put in the action:
{
"fields": {
"Team": "{{issue.team}}"
}
},
then I get this error:
"Additional fields contains invalid field(s) in 'update' or 'fields' section: Team"
Any tipps?
Hi @Dejan Velevski
Thanks for the question.
The
Advanced Roadmaps Team Field requires ID, not name. The team field value must be a numeric ID.
Try the following one.
{
"fields": {
"customfield_10201": 135
}
}
Make sure to replace 135 with the actual ID of your team.
Also, in the same rule, add Log Action; this will help identify the gap.
Team ID (customfield_10201): {{issue.customfield_10201}}
Let me know if you succeed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Dejan Velevski
Thanks for the answer.
Please try the following one, I have missed "" characters.
{
"fields": {
"customfield_10201": "135"
}
}
You can change 135 with your Team ID.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Already tried, the result is the same, i.e it returns nothing :(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Dejan Velevski
{
"fields": {
"customfield_10201": { "id": "135" }
}
}
Please try with this one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Dejan Velevski ,
We have this automation on cloud but it might be that same thing applies to DC (although I'm not sure about team IDs). Anyway, we're using advanced fields section within Edit work item fields action and the following JSON:
{
"fields": {
"customfield_10001":"123456-abcd-9876-efgh-5b021607a4b2"
}
}
where we basically navigate to the team profile and check the browser address bar to find the ID of a team. Again, I haven't properly checked the ways to get Team ID on DC. 🤔
Also, on the cloud, the Team field always has ID 10001.
I don't have an on-prem environment, so I couldn't test this out, but hopefully this might help (guide you in some direction) 👀
Cheers,
Tobi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Tomislav Tobijas ,
thanks for the answer... but if you are talking about this (see foto) in Cloud, in DC there is no such thing. The Team is created in Plans (advanced Roadmap) and there is no such a thing as you posted:
"123456-abcd-9876-efgh-5b021607a4b2"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Dejan Velevski yeah, that's it on the cloud.
As I don't have a DC environment at the moment, I would recommend trying to check on how JSON for a specific item/issue, which has a Team set, looks like.
You could try to navigate to https://<base-url>/rest/api/2/issue/<issue-key> and see how everything looks on the backend. (This is for cloud, but I believe the same URL/endpoint is on DC)
Then, try to find the Team field and see how values are stored there 👀
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello,
Welcome to Community :)
You. can do it via automation
Requirements :
Team Field : https://abc.atlassian.net/secure/admin/ConfigureCustomField!default.jspa?*customFieldId=ID*
Team Name: TEST ABC
Team Id : JQL: "Team[Team]" = "TEAMID"
Code to be used in automation
{ "fields": { "customfield_ID":"TEAMID" } }
Thank YOu,
prachi
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 @Dilip
I tried that already and it returns nothing :( i.e. I don't see it in the Audit Logs. For example, I have added the Date, i.e. {{now}} also in the logs:
Fields successfully setted Start Date:{{now}}, and Team:{{issue.Team.id}}, and Team: {{issue.customfield_10201}}, the Audit Logs are:
(SEE FOTO)
where in "Edit issue" I have:
{
"fields": {
"Start Date": "{{now}}",
"customfield_10201": "{{issue.Team.id}}"
}
}
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.