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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 16 hours ago in Off-topic

Get to know our Atlassian User Group Leaders from Bengaluru, India

Meet @Dinesh Dhinakaran, @Vishnu Vasudeva, @Rajeev Verma, and Jamshid Nalakath: Our extraordinary AUG leaders from Bengaluru, India. These four work together to strengthen the bonds of their local co...

116 views 0 4
Read article

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