Enforced Predecessor attachTemplate API | Community
Skip to main content
Level 3
June 28, 2024
Question

Enforced Predecessor attachTemplate API

  • June 28, 2024
  • 2 replies
  • 758 views

Hi All

 

So I'm looking to add a particular task that I have templated to a significant number of projects, but I need this to have an enforced predecessor.

In the GUI this is an option when attaching a template:

However there is no such option in the attachTemplate action in the "Misc Action" module, only an "options" section where there is zero documentation.....


API explorer doesn't help much either either:

 

 

Any idea if this is possible to do via the options string? And more generally where do we find out what the options are for this or any other API calls where this is an argument?

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

lgaertner
Level 9
June 28, 2024

Hello,

 

I could possibly help you, but I need to know, where you took the first screenshot?

Perhaps I am too tired, but I do not find this option in our instance...

 

Thanks in advance.

 

Regards

Lars

lgaertner
Level 9
June 28, 2024

Found it...

 

 

Can you try to use the option 

isEnforced = true

 

Regards

Lars

JonnyTh1Author
Level 3
June 28, 2024

Hi Lars

 

I did try variations of this, but your suggestion and others i've tried simply return this error:

 

KristenS_WF
Level 7
June 28, 2024

I can't find any info on action options either and had no luck playing around with the options string.

You might need to simply attach the template and then update the predecessors to add the enforcement.

This post helped me use a create a custom API call to update predecessors.  Originally I used it when creating cross-project predecessors, but I later used the same method when a team wanted to add enforcement to all the existing predecessors in their templates.