- edited description
Set Fields functionality
Hi,
i'm trying to use this postfunction to set any value like Assignee in the new task created by this postfunction, is impossible to do this ?
Is possible this problem if what have for this value is type String and Assignee is User Picker?
Cheers, JG
Comments (17)
-
reporter -
repo owner Hi Jonas,
I'm pretty sure that what you are trying to is perfectly possible, but I have a question for you:
Can you, please, tell me which post-function are you using? Is it "Create issues and subtasks".
To set a user picker you only have to write a user name (not to be confused with user's full name) into it.
-
reporter Hi Fidel,
you're right, is it this postfunction.
Check my attachment, i'm trying this but dont work! I already used it function like userEmail("jonas.gomes") Link Text
-
repo owner Hi Jonas,
That configuration should work provided user jonas.gomes is correctly written and has permissions to get the issue assigned.
You can also use the following configuration:
Please, confirm the version of JIRA Workflow Toolbox and JIRA you are using.
-
reporter Hi Fidel,
I used this configuration and still the same problem, assignee dont received this value :(
Jira Workflow Toolbox version: 2.2.28
Jira Version: 7.1.9
-
repo owner Can you please, attach a screenshot with the post-function's tab of the transition where you have inserted "Create issues and subtasks" post-function? I want to see all the post-functions and the execution order.
-
reporter Sure,
This postfunction have the function get all value set in the customfield 'Envolvidos' and create another Issue with summary of Source Issue + ('envolvido') and, this 'envolvido' set int assignee (what not work).
-
repo owner I have just tried a configuration similar to yours, using JIRA 7.1.9 and JIRA Workflow Toolbox 2.2.28, and it works exactly as expected. The new issues are assigned.
Have you double checked that jonas.gomes has permissions to get those issues assigned, and that it's the username (i.e, the one used to log in the system).
If you keep having problems we can have a video-conference through Skype. My user is fidel100r. I will be available tomorrow since 9:00 UTC to 11:30 UTC, or today until 14:45 UTC, i.e., for the next 45 minutes.
-
reporter Permission is not the problem, if i use groovy and set assignee Programmatically this works. So is not permission problem.
I'm go continue trying another possibilites, if not work i'll call you via Skype
-
repo owner Please, check your server's log file for error messages.
-
reporter Is first thing i do when i have this type problem. Nothing in log, not Error Message or any thing
That's why I came to ask for help here haha. Report nothing, is so strange
-
repo owner Although in my test it worked correctly, please, try disabling the option for inherit values for remaining fields. Let's see whether it has something to do with the problem.
-
reporter Hi Fidel,
i disable the option, but now give another error... i put a attachment screenshot
-
repo owner It must be due to a field not being set in the newly created issues, but which is required by an expression in "Create Issue" transition of Story's workflow.
-
repo owner Maybe you have a post-function in Create Issue transition of Story's workflow which is overwriting the Assignee set by "Create issues and subtasks" post-function. Please, check it up.
-
reporter Fidel,
Thanks for you help, in Create Issue there were Assignee to another User... Reason for not working, my mistake..
anyway, thanks for you attention. You were very helpful.
-
repo owner - changed status to resolved
Great that we managed to find the cause of the problem.
- Log in to comment