Run SIL script on View issue page

Is it possible to run a SIL script on a view issue page and display a Global message (using lfGlobalMessage) on View Issue screen?

1 answer

1 accepted

This widget could not be displayed.

Hi Salman,

Yes, it is possible to run a Live Fields SIL script on any screen. By default, a live fields SIL script associated to certain projects will execute on all issue screens for the given projects.

You can control on which screens to execute your SIL script using the argv["screen"] parameter inside your script. For example, if you want a live fields SIL script to execute only on the view issue screen your code should be:

if(argv["screen"] == "view") {

//your code here

}

You can find more details about accessing the current screen inside your scripts here:

http://confluence.kepler-rominfo.com/display/JJUPIN/Accessing+the+current+screen

Regards,

Alex

No, at the moment there is no support for the link issue screen in live fields.

Thanks! That works like a charm. I also see that it can identify transistion screens.

Is it also possible to identify if it is the Link Issue screen somehow?

Trying to restrct the options in Link types for specific issue types! I figure if I can identify link issue screen, that can be done easily.

I have looked into Validations based on conditions but that does not solve my problem, whoithout having to write a spearate validation plugin. And in case, after creating an issue, user can go to link page and change things which wont be validated through that plugin anyway.

So I recon, if I can limit the options itself, chances of things going wrong will be reduced.

Any possible work arounds?

What are you trying to do on the Link Issue screen?

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

191 views 18 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you