We've got an inline behaviour set up that assigns some custom fields based on the values put into other custom fields; for example, it's assigning issues for a certain client to a certain team. I've just gotten a request to automate some issue creation, which I can do with the Jira API fairly easily. However, since the team field is set in a behaviour, it is not set when issues are created via the API.
The complication here is that I do not have permissions to the file system where Jira is, so (as far as I know) I can't do anything other than inline scripts.
Is there a way that I can write a custom endpoint that would respond with the information in the inline behaviour so that I could then assign issues to the correct team based on the client? If not, is there some other option I'm overlooking, or is my only option to get permissions to the file system in question?
Thanks!
Ah! That makes sense, thanks. I'll check it out and see how it goes. Much obliged!
Hello,
The inline code, which you develop for behaviours, is execute on your Jira server, that is why you can use Java Api there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alexey,
Thanks, that's great to know. Does that mean that I have access to variables defined in the behaviour from a custom endpoint? If so, how do I go about accessing them?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can call your custom rest point from the behaviour and pass all variables, defined in the behaviour to your rest endpoint.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I want to go the other way, though: I need the behaviour to work on issue creation, and then I also need to have a custom endpoint return the information in the behaviour. Can you tell me the syntax to do that?
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can not call a behaviour from a rest endpoint. But you can call a rest endpoint from a behaviour. When your behaviour works on the create issue screen, it can call a rest endpoint to get info from the rest endpoint. Here is an example:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.