Our new Appfire Documentation Space is now live!

Take a look here! If you have any questions please email support@appfire.com

How to set a field value only if assignee belongs to a particular group

This article explains how to combine the JQL Precondition and Update Any Issue Field (JSU) post function to set a field value if the assignee of a ticket belongs to a particular group.

Use cases:

This is the documentation of JSU for Jira Server/Data Center. If you are using JSU on Jira Cloud, see our JSU Cloud documentation to implement this use case.

Instructions

Example use case: Here, we are updating a single select list field to “Yes” if the assignee of the ticket belongs to the “dev-team” group.

  1. Log in as a Jira Admin and go to the workflow that is associated with your project and issue type.

  2. In the workflow, click Edit to switch to Edit mode.

  3. Select the desired transition, select the Post Functions tab and click Add post function.

  4. Select Precondition: JQL (JSU) and click Add

  5. Add the following JQL Expression:

    key = {issue.key} and assignee in membersOf("dev-team")
  6. Select Must find issues under “Number of Issues found: “.

  7. Click Add.

     

  8. Click Add post function again to add another post function.

  9. Select the Update Any Issue Field (JSU) post function, and click Add.

  10. Select True under “Preconditions must be”.

  11. Select Within same Issue under “Update field on all issues related as”.

  12. If you want the action to be performed as some other user, enter the user in “Perform As User:”.
    Make sure this user has edit issues permissions on the issue.

  13. Select the target field and set Field Value as “Yes”.

     

  14. Click Add.

  15. On the Post Function tab, move this post function below the previously added “Precondition: JQL Condition (JSU)”.

     

  16. Publish the workflow.