Link Types Permissions by Status and Role

Issue #66 on hold
Former user created an issue

I need to distinguish between the permission of different Link types by Status and Role. For example: Link1 could be done by anoyne in any Status. Link2 could be created only in Status A,B by Role X Link3 could be done in All Status by only by Role Y.

Any idea to implement it?

Thanks a lot in advance.

Comments (2)

  1. Fidel Castro Armario repo owner

    Hi,

    Since JIRA Workflow Toolbox is essentially a set of conditions, validators, post-functions and some JQL functions, it's only possible to restrict issue links at transition execution time by using conditions or validators. Anyway, current "Condition on linked issues" and "Validator on linked issues" features doesn't support "user who creates the link" as a configuration parameter.

    The only way I find to implement your requirements is by:

    1. Removing permission to create issue links by modifying the Permission Scheme.
    2. Creating reflexive transitions (same origin and destination statuses) in all statuses of your workflow.
    3. Using Boolean validator with math, date-time or text-string terms to write and expression to restrict issue links as you like. You would need to use function "isInRole(user)", virtual field "Current user" and certain function that I can write to return issue links introduced in transition screen, something like transitionIssueLinks() (give me sometime and I will add it to the parser).

    I'm also exploring the possibility to enrich the plugin with some kind of validators triggered by events, but I'm still investigating how to do it.

    If you are interested in the first solution, please tell it to me, and I will add the function needed to the parser.

    Regards,

    Fidel

  2. Log in to comment