Hi all,
I need your help with an issue.
When a Bug is transitioning to Resolved with Resolution=Fixed and Service Case ID not empty, a user wants to have a sub-task ticket automatically created with the following fields:
- Summary: Dev Automation needed
- Assignee: the developer of the parent Bug
So, here are what I have done till now:
Firstly, I would like to know how can I create the field Summary: Dev Automation needed. See:
User wants the subtask to be created only when Service Case ID is not empty. So, how can this be done? Now, when this field is empty we take this error:
I tested and found the following:
The assignee of the Sub-tasks was not as expected (owner was set to the project owner)
(I am new here and I am not really familiar to such requests)
Thank you in advance!
Iro
Hello @Iro Karavasili
It seems you are usign both addons Script Runner and also JSU.
Both are nice adorns but I have achieved a smilar functionality only using SR plugin.
Below the screenshot of the "create subtask" post-function of the addon
In the condition section you can enter the condition based on your requirement
User wants the subtask to be created only when Service Case ID is not empty. So, how can this be done? Now, when this field is empty we take this error:
if(cfValues['<Service Case ID>'] ) {
return true;
} else {
return false
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And in the additional issue actions just set the summary
issue.summary = 'Dev Automation needed'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Tarun Sapra, I filled the "condition" and "additional issue actions" fields as you said but this time subtask did not be created at all...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Iro Karavasili
In the condition section, it's the placeholder which I used in the code for the custom field name "Service case id" , here you have to remove the place holder and put in quotes the exact name.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Glad to know it works, please accept/ upvote the answer thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I would like to find a way to check if a sub-task already exists prior to creating one with the same title.
The criteria is to not create a sub-task if another one with the same summary is found.
Kind regards,
Iro
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Iro Karavasili
It would be great if you could create a new question instead of commenting on an old closed thread.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What about this problem:
When I create the bug the assignee was set automatically the project owner.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When you say
" - Assignee: the developer of the parent Bug"
WHat do you mean by developer of parent bug, is it user picker custom field from which field of the parent bug will the sub-task pick up this information as to who is the developer working on the back, which field has that information?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I mean this field:
It works fine.
The problem is that the moment I create a Bug issue, automatically the assignee=project owner...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The default assignee is always the project lead if the setting in your Jira is such that you can't have "unassigned" issues. You can add "assignee" field on create screen to add assignee manually or use a component and make component lead as the default assignee. Possibilities are quite a lot in jira
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.