Hello everybody,
I'm trying to edit the customfield_10028 known as Request Participants automatically created by Jira, but I can't edit it without pre-selecting the value, I have tried using the edit fields advanced configuration (it had a correct value for the email):
{
"update": {
"Request participants": [
{
"add": {
"accountId": "example@email.com"
}
}
]
}
}Is it something possible to be done? Im getting an error:
Specify a valid value for customfield_10028
Hey @Suporte JRetail
Your JSON structure is fine — the problem is the value. accountId has to be the Atlassian account ID (an opaque string like 5b10ac8d82e05b22cc7d4ef5 or 712020:xxxx-...), not an email address. Jira sees an email where it expects an ID and throws exactly that "Specify a valid value" error.
{{issue.comments.last.author.accountId}} — Atlassian's KB on this is here: Manage request participants with automation.GET /rest/api/3/user/search?query=email@example.com (in a rule that'd be a Send web request action, then read the accountId out of the response).Note: the user also has to be a valid customer/agent on that service project, so even a correct accountId can be rejected if they can't access the portal.
Hi @Thanasis Nikolaou ,
Got it working with Send Web Request action, thank you very much for the information
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As @Thanasis Nikolaou mentioned, the accountId must be the Atlassian Account ID rather than the user's email address.
The following JSON should work once you replace <accountId> with a valid Atlassian account ID:
{
"update": {
"Request participants": [
{
"add": {
"id": "<accountId>"
}
}
]
}
}
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.