Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

using customfield in the JSD Portal

Rachid Amajoud June 7, 2018

Hi,

is it possible to add an extra field in the portal when customers are creating a ticket?

This field should be a radiobutton where the customers can choose of wich departement they are so that the assignee changes to the responsable helpdesk-agent!

Is this possible?

 

grtz

R.

2 answers

2 accepted

1 vote
Answer accepted
PJ Wysota
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.
June 7, 2018

1. Yes, it is possible:
- make respective field in JIRA custom fields
- add it to Create screen representing Issue type that Portal CRT is mapped into
- add a field in CRT setup in JSD Project settings

2. IMHO with radiobuttions UX will suck. Select list would be the latest. Then - if you want to make further actions based on that - I would suggest (for JSD on premise, of course) Insight for JIRA - based on its structures and references you can assign assignee or approvers, set other fields etc.

Rachid Amajoud June 7, 2018

Thx Przemek,

 

step 2 is a little complex i think, can i use scriptrunner to handle this step?

 

grtz

R.

PJ Wysota
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.
June 7, 2018

Sure - script runner or any competitor (e.g. automation for JIRA) would do that.

 

But it won't relate Reporter to the chosen location. It will only allow to set assignee on the scheme:

IF Location = XYZ THEN Assign to ABC

Rachid Amajoud June 7, 2018

Yes that's what i need, just setting the right assignee!

I have a script but don't know how to implement with the choise made by a customer in the portal.

This is the script:

import com.atlassian.jira.component.ComponentAccessor

import com.atlassian.jira.issue.MutableIssue

String userName;

switch(ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("Afdeling").toString()){

    case "AB": userName = "Sam";break;

    case "CD": userName = "Sam";break;

    case "EF": userName = "Peter";break;   

    case "GH": userName = "Peter";break;

}

issue.setAssignee(ComponentAccessor.getUserManager().getUserByName(userName))

Rachid Amajoud June 7, 2018

Przemek,

 

if I use the automation tool with the "When","If" and "Then", how can i link this to the created custom field in my JSD Portal?

 

grtz

Rachid

PJ Wysota
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.
June 7, 2018

You mean built in automation in JIRA SD? not really. rather Automation for JIRA add-on.

Rachid Amajoud June 7, 2018

I see, do you know how can I achieve this with script runner?

grtz

Rahid

PJ Wysota
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.
June 7, 2018

Not at hand - I would need to do that and test. And this is actually something I wouldn't have time for within next few days.

Rachid Amajoud June 7, 2018

Ok Przemek,

thx a lot, I hope you will find a solution, i will also try to find a solution! Please reply me if you have tested this out!

Thx a lot and have a nice weekend!

 

grtz

Rachid

Rachid Amajoud June 19, 2018

i Przemek,

did you had time to look for a solution?

thx a lot!

 

grtz

Rachid

0 votes
Answer accepted
Tansu Akdeniz
Community Champion
June 7, 2018

Hi @Rachid Amajoud,

Yes, it is possible.

Go to Project Settings > Request types > Edit fields > Add a field

Tansu Akdeniz

Rachid Amajoud June 7, 2018

hx, Tansu!

The field is added, but now i need the next step! When a customer makes a choice (radiobutton = <location>), the the assagnee must be set by a mapping Location/assignee!

 

thx

R

Suggest an answer

Log in or Sign up to answer