JJupin Get Project Name and Key at Issue Create

Topher June 10, 2014

Is there any way to get the project name and key at the issue create screen using SIL? I have a custom field of type SIL User Picker and I am looking to limit the selectable list of users at issue creation based on the project name and key the issue is being created for. Any feedback on accomplishing this with SIL or even an alternative suggestion would be greatly appreciated.

2 answers

1 accepted

0 votes
Answer accepted
Florin Manaila
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.
June 11, 2014

As it stands now, you cannot base your script on fields from the crete screen, but only values that are already saved into the database.

HTH

0 votes
Daniel Luevano November 26, 2015

You can get the Project Name using the routine lfwatch, like this:

lfWatch("components", { "components", "project"}, "scripts/HookScript.sil", {"focusin"});

Then on your HookScript.sil

 

script projectName = argv["project"];

 


Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events