Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can I pre-populate the Create subtask screen with values from the parent issue using jjupin liveFields?

Brian Leysath November 3, 2015

I've been searching for a way to pre-populate the fields on the Create Subtask screen with the corresponding values from the (soon to be) parent issue.  I tried using the Behaviours plugin, but am not having any luck.  Is this possible with JJupin and Live Fields?

Note - I realize I can create the populated subtask with the ScriptRunner plugin and a post function;  but that doesn't meet the user need whereas pre-populating the fields would.

Thank you in advance for any insight or assistance you can provide!

3 answers

1 accepted

3 votes
Answer accepted
Raluca Panait
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 4, 2015

Hi,

 

As Alexandra said , you can use JJUPIN and Live Fields for what you need.

You can use the sil scripts below :

lfInstantHook({"issueType"}, "hook.sil");
lfWatch("issueType", {"issueType"}, "hook.sil");
if(argv["screen"] == "create-subtask" && argv["issueType"] == "Sub-task") {
	lfSet("summary", summary);
    lfSet("description", desc);
    lfSet("components", components);
    lfSet("affectedVersions", affectedVersions);
}

 

Hope this helps,

Raluca

Brian Leysath November 4, 2015

First of all, thank you all for taking the time to respond. I tried the code above and it looks like this is going to work perfectly. I really appreciate it!

Antoin Stanton April 26, 2016

Hi Raluca,

This answer seems very helpful to someone who wants sub-tasks to inherit the field values of the "parent" issue.

However, I'm wondering how would it be possible to reproduce the same system for creating "Issues in Epics"?

Thanks,

Antóin

1 vote
Alexandra Topoloaga
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 3, 2015

Hi Brian,

Yes you can do it using JJUPIN and Live Fields.
We have an example here, it can be adapted very easy. 
If you have any other questions, we're eager to help. 

 

Best Regards,

Alexandra 

Błażej O_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 3, 2015

I think what Brian have been asking is how he can read the values of the parent issue, if there is technically no child in context yet (he's on the create sub-task issue screen).

Alexandra Topoloaga
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 4, 2015

You're right, Blazej. I haven't understood it at first. Raluca's example should fit Brian's needs. :)

0 votes
eric anier
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 3, 2015

Hi Brian,

If the parent (soon to be) issue is not yet available, do you mean that parent and subtask will be created at the same time from the create screen? and both parent/subtask contains same values on some fields? Is this what you need?

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events