Skip to end of banner
Go to start of banner

WIP: JMWE Cloud - Problem when using a Set issue field(s) post-function on a "Users Profiles for Jira"-provided custom field

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

\uD83E\uDD14 Problem

When using a “Set Issue Field(s)” post-function on the Create transition and using a condition that includes values from a "User Profiles for Jira” (Atlassian Marketplace link: https://marketplace.atlassian.com/apps/1212508/user-profiles-for-jira) provided custom field, the latter is not correctly set.

image-20240213-135906.png

\uD83C\uDF31 Solution

  1. Replicate the configuration considering the custom field being used and settings as follows:

CUSTOM_user_profile_jira field (provided by User Profiles for Jira app)

Text Field (read-only)

CUSTOM_select_list_single

Select List (single choice)

When assessing the "User Profiles for Jira" custom fields functionality, we noticed that this third-party app takes some time to populate the field's value.

  1. Configure the JMWE Set issue field(s) post-function, as shown below:

The intended post-function assigns the value "First Option" to the custom field (New custom field) depending on the value from the "User Profiles for Jira" custom field.

image-20240607-193936.png
{{ ["Pablo Vergara", "Other User"].includes(issue.fields["CUSTOM_user_profile_jira"]) }}

Remember what’s shown below is an example, and you would need to use and replace your own custom field name (or id) following the {{ ["Value"].includes(issue.fields["<CUSTOM_field_name>"]) }} format.

  1. As the third-party app does take a while to populate the custom field, it is necessary to include a delay as part of the post-function configuration (in the example, we have set a 15-sec delay for testing purposes):

IMPORTANT:

Use the minimum working delay duration possible and test. If the result is unexpected, increase it by one second and test again until the post-function properly sets the field value.

  1. The results observed are that the desired custom field value correctly changes to “Example”:

image-20240607-195648.png

  • No labels