Long Ligature in Devanagari

Hi, I created a ligature j_nya_aaMatra-deva glyph for the combination ja+halant+nya+aaMatra. I wonder what I should put in the liga feature to get this ligature rendered properly?

I have tried to sub ja-deva halant-deva nya-deva aaMatra-deva by this glyph, and I tried sub j_nya-deva aaMatra-deva also, since I have the j_nya-deva ligature (and it’s working), but none of these attempts worked.

You need to make sure the feature order is correct. I added a manual cjct feature and put it behind the automatic one. It only contains this line:

sub j_nya-deva aaMatra-deva by  j_nya_aaMatra-deva;