Adding a customfield with a custom fieldtype in automation by advanced fields

beheer test March 15, 2024

Hello all,

I have a customfield with a customfieldtype that i want to add to a story if its created.

This is the field:
"schema":{"type":"team","custom":"com.atlassian.jira.plugin.system.customfieldtypes:atlassian-team","customId":12600,"configuration":{"com.atlassian.jira.plugin.system.customfieldtypes:atlassian-team":true}},"name":"Team","key":"customfield_12600","autoCompleteUrl":"https://gedam.atlassian.net/gateway/api/v1/recommendations","hasDefaultValue":false,"operations":["set"],"fieldId":"customfield_12600"},{"required":false,

More info:

<customfield id="customfield_12600" key="com.atlassian.jira.plugin.system.customfieldtypes:atlassian-team">

<customfieldname>Team</customfieldname>

<customfieldvalues>

<customfieldvalue id="f8771ef1-0a37-46ae-b72a-4f2586b482e2-64">SOB-05 Beheer van applicaties</customfieldvalue>

</customfieldvalues>

</customfield>

 

In advanced field by automation i have this:
{
"fields": {
"customfield_12600": { "value": "f8771ef1-0a37-46ae-b72a-4f2586b482e2-64" }
}
}
and tried this:
{ "fields": { "customfield_12600": { "id": "f8771ef1-0a37-46ae-b72a-4f2586b482e2-64" } } }


But the field is never filled automaticly and i get this error:
SBRT-1229 (Team id 'JsonData{data={value=f8771ef1-0a37-46ae-b72a-4f2586b482e2-64}}' is not valid. (customfield_12600))

 

Can someone help me with this?

1 answer

0 votes
Stephen Wright _Elabor8_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 17, 2024

Hi @beheer test 

What type of field is this?

Is there a reason you cannot use the base "Edit Issue" options, rather than using Advanced?

Ste

beheer test March 17, 2024

@Stephen Wright _Elabor8_ :

Its a customfiekd created by my company so its not possible to use otter field 

Stephen Wright _Elabor8_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 17, 2024

What type of custom field?

Ste

beheer test March 18, 2024

@Stephen Wright _Elabor8_ :

As far i can see:
"schema":{"type":"team","custom":"com.atlassian.jira.plugin.system.customfieldtypes:atlassian-team","customId":12600,"configuration":

 

customfieldtypes:atlassian-team

If i select the field in a issue its kinda like a dropdown

Stephen Wright _Elabor8_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 18, 2024

Hi @beheer test 

Is that the standard Atlassian Team field?

If yes, have you tried this JSON:

 

{
"fields": {
"customfield_10001":"5p4894e7-1ef5-6wp1-8erq-7r3hgq43ej9q"

}
}

In this instance...

  • The custom field ID is the field's ID in the admin settings
  • The Team ID is from the Team's menu:
    • On the top navigation bar, select Teams > Search people and teams
    • Locate and select your Team
    • The ID is in the URL, and is a long alphanumeric phrase - eg. /team/5p4894e7-1ef5-6wp1-8erq-7r3hgq43ej9q

Ste

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events