Restrict versions by "unReleasedVersions" and by "RegularExpression"

Issue #358 resolved
Ian Juliff created an issue

Hi Fidel,

I am sure this is something you can do however just been struggling to get it to work.

Using "Copy a parsed text to a field Function" I am trying to update the 'fixed versions' with 'unReleasedVersions' which also meet a regular expression.

Example:

  • Sys1_10.4
  • Sys2_10.6
  • Sys3_8.5

I would like to get all 3 versions and then use a regular expression (Sys3.*) to restrict. This will be passed in from another field.

Is this possible. Could you send me instructions?

love your work by the way. We are getting so much benefits from the Workflow Toolbox extension :-)

Ian juliff

Comments (9)

  1. Ian Juliff reporter

    I have managed to get the 'unreleased versions', I am struggling with restricting with 'Regular Expressions after

  2. Ian Juliff reporter

    Fidel,

    You are a legend, just what I was after. :-)

    Out of curiosity if it returned multiple versions. Would there be anyway i could restrict them further byu Ordering by release Date? Ian

  3. Fidel Castro Armario repo owner

    Thanks for you words Ian :).

    Since unreleasedVersions() functions doesn't specify nothing about the ordering of returned versions, I think it would be interesting to return them by date of creation. I will implement it in next version of the plugin.

    But your question is about ordering on release date. The thing is that unreleased versions don't have release date, for obvious reasons. Please, let me know where is the error.

  4. Ian Juliff reporter

    Apologies, I meant by creation date.

    If you could let me know when this is released and how I might be able to use the functionality to order by 'Date Created' and take then just extract the oldest or newest version that would be awesome.

    thanks again for your help

    Ian

  5. Fidel Castro Armario repo owner

    Hi Ian, I could provide you a beta version that you could use in production environment since it will be similar to 2.2.13 with this unique change. Are you interested?

    The next official release of the plugin will take a month approximately.

  6. Fidel Castro Armario repo owner

    In version 2.2.14_beta_1 function unreleasedVersions() returns versions with the following ordering: by release date in ascending order, and by sequence in ascending order.

    Sequence order usually is the same as version creation order, but can be manually overridden in managing versions screen.

  7. Log in to comment