Setting watchers if checkbox is yes

Issue #332 resolved
Itamar Ben-Sinai created an issue

Hi, I have a checkbox with one option (yes) that if checked, I need to add users to CF watchers, on Create. How can I do it with your plugin? Thanks

Official response

Comments (12)

  1. Fidel Castro Armario repo owner

    The users you need to add are those in a project role, group, custom field, or are some specific users (always the same users)?

  2. Fidel Castro Armario repo owner

    Add "Copy a parsed text to a field" post-function to "Create Issue" transition (after "Creates the issue originally" post-function) with the following configuration:

    • Target field: New watchers
    • Parsing mode: basic
    • Text to be parsed: name_of_project_role
    • Conditional execution: %{nnnnn} = "Yes"

    replacing nnnnn with the field code of the Checkbox custom field.

  3. Itamar Ben-Sinai reporter

    Hi, Inserting the watchers does not work Jira version 6.3.5 Toolbox version 2.2.13

    I see the following error in lig: 2016-07-10 02:32:39,401 http-bio-8080-exec-3 ERROR admin 152x2348x1 1p3zr2f 127.0.0.1 /secure/QuickCreateIssue.jspa [plugins.workflowToolbox.shared.ReflectionHelper] *** Object o: com.atlassian.jira.issue.managers.DefaultIssueManager@1b0f45a3; Method method: public abstract com.atlassian.jira.issue.Issue com.atlassian.jira.issue.IssueManager.updateIssue(com.atlassian.crowd.embedded.api.User,com.atlassian.jira.issue.MutableIssue,com.atlassian.jira.event.type.EventDispatchOption,boolean); Object... arguments: [Ljava.lang.Object;@4b8eba7f

    Please advise Thanks

  4. Fidel Castro Armario repo owner

    Can you please attach a screenshot of post-function's tab of your "Create Issue" transition? I want to see all the post-functions being executed and the execution order.

  5. Itamar Ben-Sinai reporter

    I tried several scenarios with role as the text, with users as the text, before and after issue created in post-functions

  6. Log in to comment