Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do I get a customfield to fill in the approver for me?

Vincent Luckmann June 17, 2024

Hello everyone,

I have the following problem : 

When a User creates a Ticket about onboarding. This Ticket will transition to manager approval but will choose the manager of the reporter of that ticket as the approver.

Instead I want the reporter to choose the approver. So basically the user creates the ticket and enters the manager that will need to approve this ticket.

 

I have done a ton of work on my own but just can't seem to get it working.

Here are the error messages I receive when trying to transition from open to manager approval :

"Internal Server Error" 

and when I use F12 to further look into this issue :

"POST [link] 400 (Bad Request)"

 

I have also configured the Post Functions between open and manager approval in the workflow accordingly : 

 

The value cf[10140] will be appended to field Approvers, or set if it is a multi field.

Validators : 

 

If a value for field Manager 2.0 is not provided during the transition, show the following error: Please select the approving manager!

Conditions : 

 

The field Manager 2.0 will have to be not equal to value 'NULL'. Compared as String.

 

I would be more than thankful for any Tip or Trick that you will provide me. 

Thank you

3 answers

1 accepted

0 votes
Answer accepted
Vincent Luckmann June 26, 2024

I managed to fix this issue using a rule instead of post functions.

0 votes
Nicolas Grossi
Banned
June 17, 2024

@Vincent Luckmann Everything appears to be correct. You might want to open a ticket on support.atlassian.com

Nicolas 

0 votes
Nicolas Grossi
Banned
June 17, 2024

@Vincent Luckmann As per your description, there are some issues there:

 

400 http status is not an internal server error, first issue there.

 

could you please check all the validators, post functions, etc to be updated with your change.

 

could you also paste al the values that you are using for that rule to be accurate.

Nicolas

Vincent Luckmann June 17, 2024

Hi Nicolas,

first of all thank you for the fast response.

 

Open -> Manager Approval

Post functions :

  1. Move up Move down Edit Delete
    Set issue status to the linked status of the destination workflow step.
  2. Move up Move down Edit Delete
    Add a comment to an issue if one is entered during a transition.
  3. The value cf[10140] will be appended to field Approvers, or set if it is a multi field.
  4. Move up Move down Edit Delete
    Update change history for an issue and store the issue in the database.
  5. Move up Move down Edit Delete
    Re-index an issue to keep indexes in sync with the database.
  6. Move up Move down Edit Delete
    Fire a Generic Event event that can be processed by the listeners.

Conditions & Validators 

      1. are all in the previous post

 

Manager Approval -> 1st Level

Post functions : 

  1. The value of field Approvers will be cleared.
  2. Move up Move down Edit Delete
    Set issue status to the linked status of the destination workflow step.
  3. Move up Move down Edit Delete
    Add a comment to an issue if one is entered during a transition.
  4. Move up Move down Edit Delete
    Update change history for an issue and store the issue in the database.
  5. Move up Move down Edit Delete
    Re-index an issue to keep indexes in sync with the database.
  6. Move up Move down Edit Delete
    Fire a Generic Event event that can be processed by the listeners.

Conditions : 

Issue transition will be blocked if there is a pending approval.

Validators :

0

 

and that is about every Transition I have modified.

and no I have not created any rule so far regarding this. 

BR
Vincent

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events