I want to change the keys of Taska and Sub-Tasks to the customizable number.
For example, I have created Tasks and Sub-Tasks for a project.
So, I would like to give the first Task as Issue Key:- "1" and for 3 subtasks within it as- "1.1, 1.2, 1.3" issue Keys.
Please Help
Hello,
You can not do it.
You can create your own custom field and fill the value of the field with a scripting add-on.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could use the Power Scripts add-on.
Let s say you create a custom field called "Issue Number"
Then you could add a post function to the create transition with a code like this:
persistent number counter =
1
;
if (issueType == "Task") {
#{Issue Number} = counter;
counter++;
}
if (issueType == "Sub-task") {
string subtaskkeys = subtasks(parent);
int subtaskcode = size(subtaskkeys) + 1;
#{Issue Number} = %parent%.#{Issue Number} + "." + subtaskcode;
}
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.