Hi. Currently Jira Service Desk (I'm using cloud) does not have a feature to allow one customer to open a ticket for another customer. I'm trying to create an automation rule to work around this.
I've created a custom field (user picker) and added it but I'm newer to Jira and trying to figure out the syntax to get this to work. Here's some I've tried - I could use a hand as not having this feature is killing me and it doesn't look like Atlassian is adding it any time soon.
Both Attempts seem to work (well, it changes the Reporter field) but it's putting the reporter name as Anonymous vs the one I chose when I submitted the ticket (one of my test customer names/accounts).
Any help would be greatly appreciated 1000 times over ;)
TRY 1:
{
"fields": {
"reporter": "{{issue.customfield_10135}}"
}
}
TRY 2:
{
"fields": {
"reporter": {
"name": "{{issue.User Picker CF.name}}"
}
}
}
For user field updates with JSON and smart values, I believe you need to set the id attribute due to the GDPR changes, such as:
{
"fields": {
"assignee": { "id": "{{initiator.accountId}}" }
}
}
Here is the documentation for that:
https://support.atlassian.com/jira-software-cloud/docs/advanced-field-editing-json/
Best regards,
Bill
@Bill Sheboy I'll give that a try tonight but does there need to be anything in the code that calls back to the Custom "user picker (single user) I created in that statement? Will that change the assignee or the reporter of the ticket?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Steve, I was just pasting in the example from the documentation. Please change to use the fields as you need to reporter and your custom field. Thanks!
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.
Forgive me. It's not working and I'm sure I'm 100% the root cause
The custom field I used was 10135.
{
"fields": {
"reporter": { "id": "{{customField=10135}}" }
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is that an equals sign in your JSON or a typo in the post, Steve?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's a clear indication I don't know what I'm doing ;)
I was reviewing other posts and trying things I'd seen so definitely wasn't a typo. It's my badge of ignorance ;)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For automation, the Log to audit log action is very helpful. Try writing stuff to the audit log to see what happens and often it will throw an error for invalid JSON that might not otherwise show up.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yeah, the first two statements in my original post - the Audit log said it was successful, but it put Anonymous in the reporter field. Much of the other stuff I've tried failed in the logs
The latest shows (Specify a valid value for reporter (reporter)) so I've clearly screwed it up worse lol
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Haven't tried your use case but could you verify whether the user from the user picker have access to the project as customer?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Fazila Ashraf - The customer is one of my test accounts I use. The account is listed under Customers.
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.