PD Sheehan Expert

Comments

  • Which UI link you you hiding? That would help. I see that you are using issue.getProjectObject() as well as jiraHelpder.project.key. I'd say if this UI link you want to hide is related to issues, you only need to use the issue. But the following should work: import com.atlassian.jira.component.ComponentAccessor import…
  • When things aren't working, it helps to add some debug messages, try this and see where the debug messages lead you (I removed commented-out lines): import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.issue.customfields.option.Option import com.atlassian.jira.issue.fields.CustomField import…
  • I can see how that label could be misleading. This is not an error. Perhaps better labels would be * Navigate to Link * Call REST api and display a Dialog * Call REST api and show a flag * Do nothing. In either case, you have to write a custom REST enpoint that will return either a Dialog HTML or a flag json object. You…
  • There are 2 ways to perform the conversion 1) have a rest endpoint that returns a structure like: [ items: [ [value: valueString, html: valueHtml, label: labelString, icon: iconHref] ], total: numberofItems, footer: "Prompt when empty ] The convertToSingleSelect needs to include ajaxOption parameter like specified in the…
  • When in doubt, simplify... can you run the following script in your Scriptrunner console? import com.atlassian.jira.component.ComponentAccessor def epicKey = 'JSP-1661' def epic = ComponentAccessor.issueManager.getIssueObject(epicKey ) def cf = ComponentAccessor.customFieldManager.getCustomFieldObjectByName('Epic Colour')…
  • This looks like what Ataptavist are calling "Heritage Custom LIsteners" This is the old method of using custom listeners. It still works, but you are not advised to use it for new code Maybe the "it still works" is no longer true after 8.5.4. I can't find a difference in the javadoc that would explain why. But perhaps the…
  • Sounds like you are looking for the Scriprunner Escalation Services: https://scriptrunner.adaptavist.com/5.7.1.1-p5/jira/escalation-service.html You could just have the Additional Action add a comment to the ticket (which should generate an email), or else write some custom code to send an email. I have just answered…
  • If you really need something completely custom, yeah, it's possible but it requires a lot of scriptrunner skills. You'll need to: Create a custom job to run every hour Have your script run the JQL and handle the results The script will need to construct the email body and dynamically identify recipients if applicable But…
  • Sorry someone is so late getting back to you. Can you expand on what doesn't work? Are you getting some sort of error response? Note that this token is temporary and not the recommended approach for rest authentication. You can't generate that token once, store it in your code and re-use it forever. Generally, if a program…
  • Ah... next gen project. I don't have too much experience with those. They don't have the same concepts as what we have in workflows: StatusA ===TransiionName===> StatusB With workflow-based smart commits, the command must be "TransitionName". With netxtgen project, I think the smart commits command must use the target…
  • For a classic project, the smart commit command must map to the name of the transition between the current status and the next status. Not the target state name. The transition name can be different based on the workflow. Generally, the transition name is the name of the button in the issue view. Also, your workflow…
  • The per-repository indexes are in <fecru-data-dir>/var/cache/<REPONAME> You can view the full folder layout here: https://confluence.atlassian.com/fisheye/fisheye-folder-layout-960155621.html
  • Have you tried the instructions in this page? https://confluence.atlassian.com/crucible/setting-up-a-git-repository-in-crucible-298977505.html
  • By merge, do you mean: add the review data from one crucible instance to another without impacting the target instance? That's not possible. You can export from one instance and import into another. But the import will overwrite all old data. You might be able to use the REST APIs with some coding to pull all the data from…
  • The key you want to upload can have any extension, but it is essentially a plain text file that will have some content that looks like this: -----BEGIN RSA PRIVATE KEY----- MIIEpgIBAAKCAQEA+G+sK03a0pJgFP85+AZPxhFCbCBEvHjrJRC32ofbaHDvn6QO HvYwiY/Sy4M1SY9WcAyPhgXh8PsihYn5mTzyO+cO9O6AzeLH0ZCCv7pWbdhmkTqX…
  • I'm not able to find any reference to this either. Looks like there is no API for that. As a last resort, you could try to call {fecruhost}/cru/{ID}/reviewHistory and parse the html table
  • First, are you sure your fecru host is able to talk to your azure host from the server-side? You can try to run a simple curl command from the server to test it. Your https location string seems correct. But the ssh one, I'd expect the port where you have ':v3' LIke git@host.domain.com:7999/project/reponame.git (7999 is…
  • This is just a thought, but might you be using the built-in admin login? Perhaps fecru is unable to store the attribute that this dialog has been dismissed for that user. Try to create a new admin user and log in as that to add your application link. After dismissing the popup, refresh the page to see if it re-appears.
  • Hi Are you using either crowd or jira as an authentication directory? If so, I've seen the admin password default to the jira admin password. Especially if the directory sequence makes the crowd directory first. After resetting the fecru admin password, I find it helpful to also disable any crowd/jira directory.…
  • Perhaps your jira workflow is stopping that transition or jira is not recognizing "close" as a valid transition. Can you confirm that you are able to perform the transition manually with the same user as the one in your git config without making any field entry in the transition screen? Is the jira transition from "to do"…
  • Other than perhaps what appears to be a bit of translation you forgot to adjust here: FormField Requesttype = getFieldByName("Request Type") def stringValue = Typededemande.getValue() as String My guess is that you don't have this script in the correct place. In order to fire when you change the Request Type, this script…
  • I've edited your question to remove the token from your code block... you probably want to keep that private. But the response.success is already parsing the JSON for you into a nice object structure. You could just add .user.id after the last curly brace, but something like this will be safer: def responseObj def http =…
  • Behaviour is definitely the direction you want to go if you want those fields pre-populated in the create screen. But you missed a critical alert in the documentation page you linked: This script hinges on the parentIssueId being present in the form. As such, you will need to associate the script with a visible field. It…
  • You defined John with a capital J But you try to set john.name with a lowercase j
  • Hi Try import com.atlassian.jira.event.type.EventDispatchOption import com.atlassian.jira.component.ComponentAccessor def user = ComponentAccessor.jiraAuthenticationContext.loggedInUser def customFieldManager = ComponentAccessor.customFieldManager def issueManager = ComponentAccessor.issueManager def customField =…
  • I was able to find what seems to be the reference for that API https://docs.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0#json-representation So I think either of the following 2 notations will work: _userId = json.id _userId = json['id']
  • Let's see if I can walk you through the steps. First, make sure you have a behaviour configuration with the correct project/issue type mapping. Then go into the field section of the behavior. Select the "parent' field from the drop-down at the bottom in the add field selection. Then in the section for that parent field,…
  • I can't see anything inherently wrong. So maybe something is going on during the transition. A few things to try: 1) assign the issueService.transition result to some variable and examine the results 2) Don't put the log.warn() statements on the same line as the closing brace or separate them with ; 3) change the for loops…
  • The Binding is the context that includes all the variables defined for the script. Adaptavists makes sure some commonly used variable are available. That's how you're able to just use "currentUser". But there is no such thing in this binding as lastComment or mostRecentComment But if you are listening for the Issue…
  • That's not a compilation error... it's a "static type checking" error. They are generally safe to ignore. It just means that the editor is not able to confirm that results[0] yield an object that has a "getAttributes()" method. So to fix that (not that I would bother... this is groovy code, not java), you would have to…