there is a lot of questions and answers about how to set up an approvers in jira service desk. Unfortunately I didn´t found any right answer to my problem.
On my request type Order If I create a new issue as a licenced user, than I switch status over to a next one, which is TO PLAN. And from this step it would show the approvals section on issue with 3 people who should approve. Appears this (img)
If I check out "Where is my field", appears this (img2)
I thing I got everything set right in administration section (I´m administrator). Even transitions, on status TO PLAN - Add approval, I have ServiceDesk project..
Do i have to set a Scriptrunner? How? Or do I miss something else?
Hi @Veronika Dvorska ,
Tha problem is that; Approvers (Contains users needed for approval) custom field is NULL.
1- If approvers are always same for specific request type, you can set from admin panel.
You can configure approval details from workflow diagram mode. When you click to related status in service desk workflow, it will open a pop-up.
In your case, IN PLAN status has an approval configuration.
2- If you don't have default approver, you need to set the value either in edit/transition screen or postfunction.
3- You can also add approvers field in customer portal create screen. So that, end user can set value.
It totally depends on your use case.
Also, please check these links;
Hi @Tansu Akdeniz thnx for your answer.
1) Request Types has been already set - Edit fields - Hidden fields with preset vaule - that´s ok.
Yes - Status TO PLAN also have approval configuration
Everything works fine from customer portal. I don´t want customer to pick an approvers. The field with approvers is hidden - that´s ok
IF customer creates a new Issue (Order) on portal and jira agent turn on ON PLAN state, everythings works fine. Default set approvers appears on Approvals section.
I just don't know how to set the jira agent to automatically appear Approval Section on Jira with the predefined approvers, when turns the state ON PLAN. - That doesn´t work me
Maybe there is another option to go to fix it with the Scriptrunner.. but I'm not happy about that. What do you thing?
I just don't know how to set the jira agent to automatically appear Approval Section on Jira with the predefined approvers, when turns the state ON PLAN
Do you mean creating an issue from Jira interface as an agent ? (not from service desk portal). If yes,
You can use Script Runner's behaviours feature. Go to Behaviours -> Add new behaviour -> Add mapping to this behaviour in terms of project/type -> Fields -> Add a field (Approvers) -> Add server-side script -> paste the following.
def field = getFieldById(getFieldChanged())
Than, you will see the predefined approvers in Jira issue create pop-up.
that´s awsome! Thank you so much!! It works now exactly how It supposed to work.
1) Do you have any advice how to get a green checkmark at the approver who has exactly approved? Image below is just illustration (Img4)
2) If approver says YES, he switch state to PLANNED and from that moment the approvals section in jira disappear - Why? I want The Approval section to be visible in jira until the end of the issue.
Hi @Veronika Dvorska ,
Glad to hear that! You are welcome.
1) As I know, system automatically puts green checkmark at the approver.
2) In PLANNED status (as there is no approval here), Approval section will become Past Approvals. Because there may be an another Approval mechanisim for other statuses. See below example.
We know that great teams require amazing project management chops. It's no surprise that great teams who use Jira have strong project managers, effective workflows, and secrets that bring planning ...