If a user creates a ticket and chooses a department, all department managers should be added as request participants.
1 department can contain up to 5 employees in the attribute "manager". (1:n)
Every employee has one linked jira user in the attribute "Jira User". (1:1)
For a single manager, this "edit issue" step is working, but if a department has multiple Managers, i get the error "Inactive User". It seems the syntax of the list is wrong.
I use the edit issue-function with this JSON:
{
"update":{
"Request participants" :[
{
"add": {
"id":"{{#issue.customfield_10294.Manager}}{{Jira User.ID}}{{^last}}, {{/}}{{/}}"
}
}
]
}
}
Probably a silly question, but have you checked to make sure that one of the managers you're trying to add isn't actually an inactive user?
All manager´s Jira Users are active. I checked it more than one time.
My guess is that he tries to put in the user [User-ID1, User-ID2, User-ID3] instead of (maybe) [User-ID1],[User-ID2],[User-ID3].
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.
Have you tried using log action or a comment to see what the smart value {{#issue.customfield_10294.Manager}}{{Jira User.ID}}{{^last}}, {{/}}{{/}} is returning?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried this, but it does not help either:
{"update": {
"Request participants": [
{{#issue.customfield_10294.Manager}}{"add": {"id":"{{Jira User.ID}}"}}{{^last}},{{/}}{{/}}
]
}
}
Source: Add/Update/Remove Request Participants using Automation | Jira | Atlassian Documentation
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.