Create issues and subtasks Function. Set select list custom field based on Issue Type of original issue.

Issue #951 resolved
HomeAway created an issue

I'm trying to set a custom select list field in destination issue, based on the issue type of source issue. All that in Create issues and subtasks Function which doesn't give me a lot of flexibility, and I haven't found anything similar in the examples in JWT wiki.

For instance, if Issue Type of the source issue is "Production", then a custom field "Environment Affected" in a new issue should set an option "Production" too.

Is it possible in the current version of JWT?

Comments (3)

  1. Fidel Castro Armario repo owner

    Hi @amishenin,

    You should use the following configuration at parameter "Set fields" in post-function "Create issues and subtasks":

    Captura de pantalla 2018-01-13 a las 0.00.11.png

    Expression used is:

    getMatchingValue(%{00014}, ["Production", "Bug", "Story"], ["Production", "Development", "Staging"])
    

    where %{00014} is field code for Issue type.

    Once configured, the parameter will look like this:

    Captura de pantalla 2018-01-13 a las 0.00.20.png

  2. Log in to comment