Jira Spoke 'Create User' activity error: "You must specify the products that user can access"

Steve Brown1
Tera Expert

Hi Community, 

 

The Jira Spoke 'Create User' Activity is erroring with the below and I'm at a loss to what is causing the error:

{
    "Action Status": {
        "code": 1,
        "message": "Error:  You must specify the products that user can access. (Process Automation.fb6442fe77391110cc985228c81061d6; line 4)"
    }
}

This Activity has previously worked via a manual test however, nothing in terms of configuration has changed. 

I have since tested the Activity manually entering the values and via a FLOW gathering the values from a submitted Request Item.

 

Would this something that needs to be configured within Jira as the Create User activity doesn't required anything in relation to specifying a product?

SteveBrown1_0-1717492063174.png

#jira

#jiraspoke

#atlassian

#integrationhub

#createuser

14 REPLIES 14

Hi Mark, 

I've resolved the issue after a few attempts - I will post what you need to do tomorrow as I need to log of now.

Regards,

Steve

Mark Van Loock
Tera Guru

For anyone still following this, I have managed to get it all sorted. Here's a summary of the steps I needed to take.

 

1. Assuming you already have Jira Spoke installed and have a Create User step in your Flow, Open up Workflow Studio and go to the Create User step. Click the "Open Action in Action Designer" button on the right

2. With Create User open, Select "Copy Action" from the ... menu. Give it a new name, and make sure the Application is Jira Spoke.

3. Edit this new action (you can get to it via the workflow studio home page under the Actions bubble. Under Inputs / Action Input click the Create Input button. Name the new input "Products". Change the type to Array.String.

4. Under the Pre Processing section, you need to add the input to the "Input Variables" section: Click Create Variable, name is "products" value is "action > products

5. Still under Pre Processing, in the Script section, around line 16 is the request body creation section. I added this line to both the if and the else section (note that if there are multiple lines, don't forget the comma at the end of each line except the last one! : 

products: ((inputs.products) ? inputs.products : undefined)
 
6. That should be it, save and publish it, then add it to your Flow. In our environment we could leave the product blank - we didn't have to specify a product, but the product variable needed to be passed to the API for it to work
 
As I was messing around, I occasionally experienced problems with editing the flow, and had to revert back to a previous version. Here's the steps for that...
 
"Your Flow cannot be found. Flow sys_id:Fai"
Go to sys_hub_flow.list
Right click on the flow to get the sys_id
Navigate to sys_update_version.list and paste in the sys_id of my erroring flow
Select the version you want, then under Related Links, select “Revert to this version”
Revert to a previous (working) version of the flow
 

 

 

Hey @Mark Van Loock,

 

Thanks for the detailed notes. We've been getting an increase in requests to enhance on our ServiceNow to Jira (and in reverse) integration, so I'm sure I'll reference your post!

 

Have a great day!

-Josh Pirozzi

can you please help also with steps to remove user from Jira group, I am getting this error.  

hanwar2_0-1749404458529.pnghanwar2_1-1749404516994.png

 

Steve Brown1
Tera Expert

To get my issues resolved wasn't as in-depth as @Mark Van Loock, as we don't need the Product.

 

Copy the Activity and add the Product Variable as a String

JIRA 1.JPG

Update the Activity as shown below if you don't need to send any Product info to Jira.  Adding in the Product variable Data item to the Input Variables:

JIRA 2.JPG

 Then update the script: 

JIRA 3.JPG