Missed Team ’24? Catch up on announcements here.

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

Can we restrict the users in Assignee field based on the custom field value?

Kavya Janiwarad March 22, 2022

Hi Team

We have one requirement from the client-side, which is related to the Assignee field(System field) in Jira, they want to list only certain users in the assignee field on a given stage/value of the custom field. so can we restrict the users in the Assignee field based on custom field value? Could you please confirm if it is possible?

Regards,
Kavya Janiwarad

1 answer

1 accepted

1 vote
Answer accepted
Stephen Wright _Elabor8_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 26, 2022

Hi @Kavya Janiwarad 

As far as I know, not natively.

Who is in the Assignee field for a Project is based on the Project Permissions (i.e Assignable User) - but this is for all Issues, not specific ones.

Could you explain the scenario in more detail? It might help us find an alternative solution :)

Ste

Kavya Janiwarad March 27, 2022

Hello @Stephen Wright _Elabor8_ 

Thanks for your reply,

The scenario is we have one custom field, the name is 'Current Support Level' which contains L1, L2, and L3 values, the restriction we are looking for is when the current support level is L1 then only certain users list should be visible while searching for the assignee and similarly for L2 and L3.

 

Regards,

Kavya Janiwarad

Stephen Wright _Elabor8_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 28, 2022

Hi @Kavya Janiwarad 

You could sort of do this with Automation - just not in the method you're looking for.

Examples below.

 


Example 1 - Auto-assignment

If assignment at each level is automatic - you could use Automation to assign Issues from a specific group of users.

The rule might look like this...

  • Trigger: Field Value Changed - Current Support Level
  • Condition: If/Else Block
    • If...
      • Sub-Condition: Issue Fields Condition - Support Level = L1
      • Action: Assign Issue
        • Assign To: User in a defined list
        • Method to Choose Assignee: Balanced Workload
        • JQL: statusCategory != Done
        • User List: User1, User2, User3
    • Else-If...
      • Sub-Condition: Issue Fields Condition - Support Level = L2
      • Action: Assign Issue
        • Assign To: User in a defined list
        • Method to Choose Assignee: Balanced Workload
        • JQL: statusCategory != Done
        • User List: User4, User5, User6
  • ...etc

 


Manual Assignment - Warnings

Whilst you can't limit the field options, you could use Automation to manage assignment. For example, remove Assignee where they're not in the required Support Level Group.

This rule might look like this...

  • Trigger: Issue Assigned
  • Condition: Issue Fields Condition - Assignee is not empty
  • Condition: If/Else Block
    • If...
      • Sub-Condition: JQL - "Current Support Level" = L1 and Assignee not in (User1, User2, User3)
      • Action: Edit Issue - remove Assignee
      • Action: Comment on Issue - remind users to assign to the L1 team only, providing a list of users
    • Else-If....
      • Sub-Condition: JQL - "Current Support Level" = L2 and Assignee not in (User4, User5, User6)
      • Action: Edit Issue - remove Assignee
      • Action: Comment on Issue - remind users to assign to the L2 team only, providing a list of users
  • ...etc

 


So there are options to manage for this - just with different behaviours from an action perspective.

Your other option is to search for a Marketplace App that can fulfil your need. In Server/DC it was probably possible using apps like Scriptrunner, using behaviours - but they're not available in Cloud at present!

Ste

Kavya Janiwarad March 28, 2022

Hi @Stephen Wright _Elabor8_ 

Yes, you are correct, we can use automation, but we don't want the auto-assignment, we are looking for the manual assignment, and also we should choose to whom we have to assign. and every time the assignee will vary based on the issue.

 

Regards,

Kavya Janiwarad

Stephen Wright _Elabor8_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 2, 2022

Hi @Kavya Janiwarad 

Using Automation, I think the Manual Assignment - Warnings option I listed above is the best version I can think of.

Aside from that, I don't know of any other good options for this need. You could check out the Marketplace though, and see if an App can fulfil your requirements?

Let us know which solution you choose :)

Ste

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events