The users you need to add are those in a project role, group, custom field, or are some specific users (always the same users)?
Setting watchers if checkbox is yes
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)
-
repo owner -
reporter I'll create a role for that
-
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.
-
reporter Will try, Thanks!!
-
repo owner - changed status to resolved
Reopen the issue if you have problem with given solution.
-
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
-
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.
-
repo owner - changed status to open
-
reporter I tried several scenarios with role as the text, with users as the text, before and after issue created in post-functions
-
reporter - attached postF.PNG
-
repo owner In your screenshot I can see that you are using in parameter Target field a field called "Add watchers". That field has not relation with JIRA Workflow Toolbox.
You should use a virtual field created by JIRA Workflow Toolbox which is called "New watchers".
You should insert "Copy a parsed text to a field" AFTER post-function "Creates the issue originally".
-
reporter - changed status to resolved
Thanks for your quick help !!!
- Log in to comment
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:
replacing nnnnn with the field code of the Checkbox custom field.