Action to add Request Participants - Automation for Jira add-on

Jenifer Kuntz March 6, 2017

Is there any plan to be able to add Service Desk Request Participants as an action?

Thanks!

2 answers

1 accepted

4 votes
Answer accepted
Nick Menere
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 6, 2017

Hi Jenifer,

You can do this in Automation for JIRA with the "Edit Issue" action using the advanced field. We haven't got to adding it as a nice field yet but we are working on it.

Simply use something like this in the advanced section:

{
    "update": {
        "Request participants": [
            {
                "add": { "name": "admin" }
            }
        ]
    }
}

 

Substitute admin for the username of the person you want to add. You can also use smart values here to add users from a custom field or action.

 

Hope this helps.

 

Cheers,

Nick

Laura Nelson June 30, 2017

Nick,

How do you add multiple request participants in the advanced section?

Laura

Nick Menere
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 5, 2017

Hey Laura,

This should work for you:

{
    "update": {
        "Request Participants": [
            {
                "add": { "name": "admin" }
            },
            {
                "add": { "name": "scott" }
            }
        ]
    }
}

Cheers,

Nick

Laura Nelson July 6, 2017

That worked. Thanks Nick!

Laura Nelson August 10, 2017

Nick,

I have one issue, if the Reporter is the same as the Request Participants I am trying to add the automation task fails.  So I have a list of 4 people that are added as request participants to every ticket that meets certain criteria.  Is there a way for it to continue even if the reporter is the same as the request participant? Or will I have to create rules for each of those instances?

Laura

Dmitry Tyomkin September 8, 2017

Laura, for what it's worth, I solved same problem by adding participants in the ScriptRunner postfunction, where I check and do not add the reporter.

Julian Castello October 1, 2019

Hello,

can we add a user as customer or just user with licence? Thanks!

Piotr Janik March 19, 2021

Thank you, it works. But is it possible to use an array instead? This:

{
    "update": {
        "Request Participants": [
            {
                "add": [
{ "name": "admin" },
{ "name": "scott" }
] } ] } }

 doesn't work. This:

{
    "fields": {
        "Request Participants": [
            { "name": "admin" },
            { "name": "scott" }
        ]
    }
}

 does work, but it's a "set" operation, not an update.

1 vote
info_intercomp_ru February 7, 2020

Guys!

Is it possible to user JSON like that (I need to add new Request participants to issue):

Question.png

And I've got an error: (data was not an object (customfield_10108))

Tim Nelson April 6, 2021

See Nick's comment above; basically, you need to set the "name" of the user, not just add them directly. 

Suggest an answer

Log in or Sign up to answer