Our new Appfire Documentation Space is now live!

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

JSU Cloud: 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 Cloud. If you are using JSU on Jira Server or on Jira Data Center, see our JSU Server/Data Center 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 to Jira as an 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 then click Add post function.

  4. Select Update Any Issue Field (JSU) and click Add.

  5. Click Add Precondition and then click Add for the JQL Precondition.

     

  6. Configure the precondition as below:

    JQL:

    key = {issue.key} and assignee in membersOf("dev-team")

    Replace dev-team with the desired group name.

  7. Set the parameters of the post function as follows:

    1. Set the “Preconditions must be” to True.

    2. Set “Update field on all issues related as” as Within same Issue.

    3. Issue Field: Select the target field.

    4. Choose the desired user in “Perform As User:”. Make sure this user has edit issues permissions on the issue. Please refer to https://beecom-products.atlassian.net/wiki/spaces/JSUCLOUD/pages/27801829 for details on this.

    5. Field Value: Enter the desired value for the field.

       

  8. Click Add.

  9. Publish the workflow.
    The JSU post function summary displays:

It is recommended that you test this scenario in a non-production environment before implementing it in a production environment.