Create condition that checks project key matches string?

Issue #149 closed
Will created an issue

I have a workflow used by two projects and I have a transition I only want to be available in one of the projects.

I made a "Check project property" condition which didn't work the way i expected.

Screenshot 2015-07-09 12.50.47.png

So then i read and saw I needed to add a project property to the project description and then I edited the condition to:

Screenshot 2015-07-09 12.52.03.png

Which works but isn't ideal. Is there a better way to accomplish this that doesnt require having a property line in the project description field?

Comments (6)

  1. Fidel Castro Armario repo owner

    Hi Will,

    At this moment this is the way project properties are implemented. I have the intention to provide an alternative implementation where project properties are hidden.

    Let's keep this issue open until the improvement is implemented.

    Regards,

    Fidel

  2. Fidel Castro Armario repo owner

    There is a possible solution if keeping project description clean is a priority for you:

    Use "Boolean condition with math, date-time or text-string terms" with an expression like this:

    conf-1.png

    In the example, the transition will be shown only in issues belonging to projects with keys PTD, CRM or ICX.

    Note that %{00018} is field code for "Project key".

    This solution requires to edit the workflow each time you want to include a new project.

  3. Log in to comment